Prevent dismissal of notification.

Fixes #12681
This commit is contained in:
Cody Henthorne
2023-01-03 11:02:26 -05:00
parent 1712442560
commit 7b3d8d01ae

View File

@@ -270,6 +270,7 @@ public class KeyCachingService extends Service {
builder.setSmallIcon(R.drawable.icon_cached);
builder.setWhen(0);
builder.setPriority(Notification.PRIORITY_MIN);
builder.setOngoing(true);
builder.addAction(R.drawable.ic_menu_lock_dark, getString(R.string.KeyCachingService_lock), buildLockIntent());
builder.setContentIntent(buildLaunchIntent());