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

Commit db2b4ba6 authored by Chris Wren's avatar Chris Wren Committed by Android (Google) Code Review
Browse files

Merge "Don't crash sysui when advisory calls fail." into mnc-dev

parents 1aadfc2b 26505585
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) {