File tree Expand file tree Collapse file tree
app/src/main/java/com/nextcloud/client/jobs/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import androidx.core.app.NotificationCompat
1515import com.nextcloud.client.jobs.notification.WorkerNotificationManager
1616import com.nextcloud.client.jobs.upload.FileUploadHelper
1717import com.nextcloud.client.jobs.upload.UploadBroadcastAction
18+ import com.nextcloud.client.notifications.AppWideNotificationManager
1819import com.nextcloud.utils.extensions.isConflict
1920import com.nextcloud.utils.extensions.isFileSpecificError
2021import com.owncloud.android.R
@@ -144,9 +145,12 @@ object UploadErrorNotificationManager {
144145 )
145146 }
146147
147- if (result.code == ResultCode .UNAUTHORIZED ) {
148- setContentIntent(credentialPendingIntent(context, operation))
148+ val pendingIntent = if (result.code == ResultCode .UNAUTHORIZED ) {
149+ credentialPendingIntent(context, operation)
150+ } else {
151+ AppWideNotificationManager .getUploadListPendingIntent(context)
149152 }
153+ setContentIntent(pendingIntent)
150154 }.build()
151155 }
152156
You can’t perform that action at this time.
0 commit comments