Skip to content

Commit

Permalink
Merge pull request #14423 from nextcloud/backport/14421/stable-3.30
Browse files Browse the repository at this point in the history
[stable-3.30] BugFix - Don't Show Auto Upload Notification More Than Once
  • Loading branch information
tobiasKaminsky authored Jan 17, 2025
2 parents bfa58e5 + e91ba45 commit b2d73ad
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,15 @@ class MediaFoldersDetectionWork constructor(
!MainApp.isClientBranded()
) {
sendAutoUploadNotification()
preferences.setAutoUploadGPlayNotificationShown(true)
}

return Result.success()
}

@Suppress("MagicNumber")
private fun sendAutoUploadNotification() {
val notificationId = randomIdGenerator.nextInt()
val notificationId = 326
val intent = Intent(context, FileDisplayActivity::class.java).apply {
flags = Intent.FLAG_ACTIVITY_SINGLE_TOP
action = FileDisplayActivity.AUTO_UPLOAD_NOTIFICATION
Expand Down

0 comments on commit b2d73ad

Please sign in to comment.