summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2015-07-22 17:03:17 -0400
committerChris Wren <cwren@android.com>2015-07-22 17:03:17 -0400
commit26505585a499aee584e337f25d75450975cbcd44 (patch)
tree4b9b9714a59ce931ac0283cbe72dfa77a6579c17
parentb73946715cb9e3ca7a2702407e34f885e92a5d9a (diff)
downloadframeworks_base-26505585a499aee584e337f25d75450975cbcd44.zip
frameworks_base-26505585a499aee584e337f25d75450975cbcd44.tar.gz
frameworks_base-26505585a499aee584e337f25d75450975cbcd44.tar.bz2
Don't crash sysui when advisory calls fail.
Bug: 22653721 Change-Id: I8e2fc3887b7c71f99eb02306ce308f722dba4d07
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
index f62dc59..a2e6632 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
@@ -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) {