Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 019c689e authored by Chris Wren's avatar Chris Wren Committed by The Android Automerger
Browse files

Don't crash sysui when advisory calls fail.

Bug: 22653721
Change-Id: I8e2fc3887b7c71f99eb02306ce308f722dba4d07
parent 8c18d79b
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -729,11 +729,15 @@ public abstract class BaseStatusBar extends SystemUI implements
    }

    protected void setNotificationShown(StatusBarNotification n) {
        mNotificationListener.setNotificationsShown(new String[] { n.getKey() });
        setNotificationsShown(new String[]{n.getKey()});
    }

    protected void setNotificationsShown(String[] keys) {
        try {
            mNotificationListener.setNotificationsShown(keys);
        } catch (RuntimeException e) {
            Log.d(TAG, "failed setNotificationsShown: ", e);
        }
    }

    protected boolean isCurrentProfile(int userId) {