Skip to content

Commit

Permalink
updateThumbnailIfNeeded
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Feb 25, 2025
1 parent 3f8527e commit 7f9be17
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,19 @@ class ConflictsResolveActivity : FileActivity(), OnConflictDecisionMadeListener
else -> Unit
}

updateThumbnailIfNeeded(decision, file)
dismissConflictResolveNotification(file)
finish()
}
}

private fun updateThumbnailIfNeeded(decision: Decision?, file: OCFile?) {
if (decision == Decision.KEEP_BOTH || decision == Decision.KEEP_SERVER) {
file?.isUpdateThumbnailNeeded = true
fileDataStorageManager.saveFile(file)
}
}

private fun dismissConflictResolveNotification(file: OCFile?) {
val notificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
val tag = NotificationUtils.createUploadNotificationTag(file)
Expand Down

0 comments on commit 7f9be17

Please sign in to comment.