diff options
author | Chris Wren <cwren@android.com> | 2015-07-22 21:18:40 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-07-22 21:18:40 +0000 |
commit | db2b4ba69db391c3703277ccb986524c072be5f5 (patch) | |
tree | abb36fba8f4db0a6a1b3d39e880a9114613229a6 /packages/SystemUI | |
parent | 1aadfc2bc46a14b6c95dc45ec11c4191cac5062d (diff) | |
parent | 26505585a499aee584e337f25d75450975cbcd44 (diff) | |
download | frameworks_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.java | 8 |
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) { |