Skip to content

Commit b2d73ad

Browse files
Merge pull request #14423 from nextcloud/backport/14421/stable-3.30
[stable-3.30] BugFix - Don't Show Auto Upload Notification More Than Once
2 parents bfa58e5 + e91ba45 commit b2d73ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: 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)