Skip to content

Commit db2b4ba

Browse files
cwrenAndroid (Google) Code Review
authored andcommitted
Merge "Don't crash sysui when advisory calls fail." into mnc-dev
2 parents 1aadfc2 + 2650558 commit db2b4ba

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)