Don't crash sysui when advisory calls fail.

Bug: 22653721
Change-Id: I8e2fc3887b7c71f99eb02306ce308f722dba4d07
This commit is contained in:
Chris Wren
2015-07-22 17:03:17 -04:00
parent b73946715c
commit 26505585a4

View File

@@ -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) {
mNotificationListener.setNotificationsShown(keys);
try {
mNotificationListener.setNotificationsShown(keys);
} catch (RuntimeException e) {
Log.d(TAG, "failed setNotificationsShown: ", e);
}
}
protected boolean isCurrentProfile(int userId) {