Merge pull request #2198 from proski/fix-2185

Suppress "Entry is available" notifications on wearable devices
This commit is contained in:
PhilippC
2023-01-30 09:12:23 +01:00
committed by GitHub

View File

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