2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-09-02 15:15:09 +00:00

Fix "find my phone" notification being dismissable

Dismissing the notification caused the alarm to keep playing without a
way to stop it.

BUG: 446349
This commit is contained in:
Albert Vaca Cintora
2023-04-13 19:10:02 +02:00
parent 64b32003cc
commit 4c6cda711f

View File

@@ -151,6 +151,7 @@ public class FindMyPhonePlugin extends Plugin {
.setFullScreenIntent(pendingIntent, true) .setFullScreenIntent(pendingIntent, true)
.setPriority(NotificationCompat.PRIORITY_HIGH) .setPriority(NotificationCompat.PRIORITY_HIGH)
.setAutoCancel(true) .setAutoCancel(true)
.setOngoing(true)
.setContentTitle(context.getString(R.string.findmyphone_found)); .setContentTitle(context.getString(R.string.findmyphone_found));
notification.setGroup("BackgroundService"); notification.setGroup("BackgroundService");