diff --git a/app/src/main/java/com/nextcloud/client/jobs/MediaFoldersDetectionWork.kt b/app/src/main/java/com/nextcloud/client/jobs/MediaFoldersDetectionWork.kt index ff5e587c0f37..082db7607ded 100644 --- a/app/src/main/java/com/nextcloud/client/jobs/MediaFoldersDetectionWork.kt +++ b/app/src/main/java/com/nextcloud/client/jobs/MediaFoldersDetectionWork.kt @@ -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