diff --git a/src/com/android/launcher3/notification/NotificationListener.java b/src/com/android/launcher3/notification/NotificationListener.java index d96745eb21..e990e2ce18 100644 --- a/src/com/android/launcher3/notification/NotificationListener.java +++ b/src/com/android/launcher3/notification/NotificationListener.java @@ -208,6 +208,10 @@ public class NotificationListener extends NotificationListenerService { result = getActiveNotifications(keys); } catch (SecurityException e) { Log.e(TAG, "SecurityException: failed to fetch notifications"); + } catch (RuntimeException e) { + // This is an upstream bug in the Android framework + // https://github.com/GrapheneOS/os-issue-tracker/issues/2601 + Log.e(TAG, "Workaround for Android framework."); } return result == null ? new StatusBarNotification[0] : result; }