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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user