Skip to content

Commit 2650558

Browse files
committed
Don't crash sysui when advisory calls fail.
Bug: 22653721 Change-Id: I8e2fc3887b7c71f99eb02306ce308f722dba4d07
1 parent b739467 commit 2650558

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,11 +729,15 @@ public boolean isNotificationForCurrentProfiles(StatusBarNotification n) {
729729
}
730730

731731
protected void setNotificationShown(StatusBarNotification n) {
732-
mNotificationListener.setNotificationsShown(new String[] { n.getKey() });
732+
setNotificationsShown(new String[]{n.getKey()});
733733
}
734734

735735
protected void setNotificationsShown(String[] keys) {
736-
mNotificationListener.setNotificationsShown(keys);
736+
try {
737+
mNotificationListener.setNotificationsShown(keys);
738+
} catch (RuntimeException e) {
739+
Log.d(TAG, "failed setNotificationsShown: ", e);
740+
}
737741
}
738742

739743
protected boolean isCurrentProfile(int userId) {

0 commit comments

Comments
 (0)