From 9d19ded3ecb9bfedc232d538a6e6dacb43f488b3 Mon Sep 17 00:00:00 2001 From: Yaksh Bariya Date: Wed, 15 Jan 2025 13:06:26 +0530 Subject: [PATCH] Fix upstream bug with dots enabled (#5167) https://github.com/GrapheneOS/os-issue-tracker/issues/2601 I did not find any issue reported upstream, but I can confirm that this bug exists on Moto App Launcher (the launcher on Motorola's devices), which seems to imply this is a bug in AOSP itself. I had asked @agnostic-apollo about this is a bug, and he said that this is a bug in Android's libraries itself --- .../android/launcher3/notification/NotificationListener.java | 4 ++++ 1 file changed, 4 insertions(+) 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; }