From cbc99b49abec9eaa3dd3e3982f7f3e07cc477e24 Mon Sep 17 00:00:00 2001 From: TaaviE Date: Sun, 30 Aug 2020 17:53:50 +0300 Subject: [PATCH] Caught an another exception that occurs when there's no access to the notifications --- .../gadgetbridge/externalevents/NotificationListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java index 1ad55fc06..38a160781 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java @@ -691,7 +691,7 @@ public class NotificationListener extends NotificationListenerService { mHandler.postDelayed(mSetMusicStateRunnable, 100); return true; - } catch (NullPointerException | RemoteException e) { + } catch (NullPointerException | RemoteException | SecurityException e) { return false; } }