Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ object UploadErrorNotificationManager {
context,
operation.ocUploadId.toInt(),
intent,
PendingIntent.FLAG_IMMUTABLE
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,22 @@ class ConflictsResolveActivity :
offlineOperationNotificationManager = OfflineOperationsNotificationManager(this, viewThemeUtils)
}

override fun onNewIntent(intent: Intent) {
super.onNewIntent(intent)

setIntent(intent)

// re-read extras from new intent
restoreState(null)

// force fresh remote file fetch in onStart
existingFile = null

val upload = uploadsStorageManager.getUploadById(conflictUploadId)
newFile = file
setupDecisionListener(upload)
}

private fun restoreState(savedInstanceState: Bundle?) {
if (savedInstanceState != null) {
conflictUploadId = savedInstanceState.getLong(EXTRA_CONFLICT_UPLOAD_ID)
Expand Down
Loading