Suppress "Entry is available" notifications on wearable devices

Fixes #2185
This commit is contained in:
Pavel Roskin
2023-01-22 10:41:40 -08:00
parent f6e6d0e59c
commit a8e519660b

View File

@@ -140,6 +140,9 @@ namespace keepass2android
_ctx.GetString(Resource.String.menu_copy_totp),
GetPendingIntent(Intents.CopyTotp, Resource.String.menu_copy_totp)));
// Don't show on wearable devices
notificationBuilder.SetLocalOnly(true);
notificationBuilder.SetPriority((int)Android.App.NotificationPriority.Max);
var notification = notificationBuilder.Build();
notification.DeleteIntent = CreateDeleteIntent(NotifyCombined);