From d8bd8a29bc1252ec18942936d49cfc6bf85c885e Mon Sep 17 00:00:00 2001 From: Philipp Crocoll Date: Tue, 20 Feb 2018 22:02:33 +0100 Subject: [PATCH] don't create notification channels for devices < sdk 26 --- src/keepass2android/app/App.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/keepass2android/app/App.cs b/src/keepass2android/app/App.cs index 450c8792..1e5276a9 100644 --- a/src/keepass2android/app/App.cs +++ b/src/keepass2android/app/App.cs @@ -870,6 +870,8 @@ namespace keepass2android private void CreateNotificationChannels() { + if ((int)Build.VERSION.SdkInt < 26) + return; NotificationManager mNotificationManager = (NotificationManager)GetSystemService(Context.NotificationService);