Skip to content

Commit e568059

Browse files
Merge pull request #14421 from nextcloud/bugfix/dont-show-auto-upload-notification-multiple-times
BugFix - Don't Show Auto Upload Notification More Than Once
2 parents a50a4c9 + daf5902 commit e568059

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/main/java/com/nextcloud/client/jobs/MediaFoldersDetectionWork.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,15 @@ class MediaFoldersDetectionWork constructor(
201201
!MainApp.isClientBranded()
202202
) {
203203
sendAutoUploadNotification()
204+
preferences.setAutoUploadGPlayNotificationShown(true)
204205
}
205206

206207
return Result.success()
207208
}
208209

210+
@Suppress("MagicNumber")
209211
private fun sendAutoUploadNotification() {
210-
val notificationId = randomIdGenerator.nextInt()
212+
val notificationId = 326
211213
val intent = Intent(context, FileDisplayActivity::class.java).apply {
212214
flags = Intent.FLAG_ACTIVITY_SINGLE_TOP
213215
action = FileDisplayActivity.AUTO_UPLOAD_NOTIFICATION

0 commit comments

Comments
 (0)