Skip to content

Commit 0667755

Browse files
committed
fix(service): Use high priority for duplicate scan result notification
1 parent c2e35dc commit 0667755

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/src/main/java/com/cleansweep/service/DuplicateScanService.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,8 @@ class DuplicateScanService : LifecycleService() {
465465
val pendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE)
466466

467467
val notificationBuilder = NotificationCompat.Builder(this, RESULT_CHANNEL_ID)
468+
.setPriority(NotificationCompat.PRIORITY_HIGH)
469+
.setDefaults(NotificationCompat.DEFAULT_ALL)
468470
.setContentIntent(pendingIntent)
469471
.setAutoCancel(true)
470472

@@ -529,7 +531,7 @@ class DuplicateScanService : LifecycleService() {
529531
val resultChannel = NotificationChannel(
530532
RESULT_CHANNEL_ID,
531533
"Duplicate Scan Results",
532-
NotificationManager.IMPORTANCE_DEFAULT
534+
NotificationManager.IMPORTANCE_HIGH
533535
).apply {
534536
description = "Shows the final result of the duplicate files scan."
535537
}

0 commit comments

Comments
 (0)