1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-01 14:32:54 +01:00

Make screenshot notifications high priority

This commit is contained in:
José Rebelo 2023-06-11 17:31:12 +01:00
parent b3db9b7768
commit 5df25effba

View File

@ -406,7 +406,7 @@ public abstract class AbstractDeviceSupport implements DeviceSupport {
NotificationCompat.Action action = new NotificationCompat.Action.Builder(android.R.drawable.ic_menu_share, "share", pendingShareIntent).build(); NotificationCompat.Action action = new NotificationCompat.Action.Builder(android.R.drawable.ic_menu_share, "share", pendingShareIntent).build();
Notification notif = new NotificationCompat.Builder(context, NOTIFICATION_CHANNEL_ID) Notification notif = new NotificationCompat.Builder(context, NOTIFICATION_CHANNEL_HIGH_PRIORITY_ID)
.setContentTitle("Screenshot taken") .setContentTitle("Screenshot taken")
.setTicker("Screenshot taken") .setTicker("Screenshot taken")
.setContentText(filename) .setContentText(filename)