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

This commit is contained in:
Chris Wren
2015-07-22 21:18:40 +00:00
committed by Android (Google) Code Review

View File

@@ -729,11 +729,15 @@ public abstract class BaseStatusBar extends SystemUI implements
} }
protected void setNotificationShown(StatusBarNotification n) { protected void setNotificationShown(StatusBarNotification n) {
mNotificationListener.setNotificationsShown(new String[] { n.getKey() }); setNotificationsShown(new String[]{n.getKey()});
} }
protected void setNotificationsShown(String[] keys) { protected void setNotificationsShown(String[] keys) {
mNotificationListener.setNotificationsShown(keys); try {
mNotificationListener.setNotificationsShown(keys);
} catch (RuntimeException e) {
Log.d(TAG, "failed setNotificationsShown: ", e);
}
} }
protected boolean isCurrentProfile(int userId) { protected boolean isCurrentProfile(int userId) {