summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2015-07-22 21:18:40 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-07-22 21:18:40 +0000
commitdb2b4ba69db391c3703277ccb986524c072be5f5 (patch)
treeabb36fba8f4db0a6a1b3d39e880a9114613229a6 /packages/SystemUI
parent1aadfc2bc46a14b6c95dc45ec11c4191cac5062d (diff)
parent26505585a499aee584e337f25d75450975cbcd44 (diff)
downloadframeworks_base-db2b4ba69db391c3703277ccb986524c072be5f5.zip
frameworks_base-db2b4ba69db391c3703277ccb986524c072be5f5.tar.gz
frameworks_base-db2b4ba69db391c3703277ccb986524c072be5f5.tar.bz2
Merge "Don't crash sysui when advisory calls fail." into mnc-dev
Diffstat (limited to 'packages/SystemUI')
-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) {