diff options
author | d34d <clark@cyngn.com> | 2016-03-08 14:20:56 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-03-09 09:31:20 -0800 |
commit | 15b3922aaa44513127d4d0edcbc0080725daf4fd (patch) | |
tree | bc1468cc6af078b53794e6d6200bd2a9b766c191 /packages/SystemUI/src | |
parent | 39a09c54bebd7a7977c4686b5a972b5efc94e248 (diff) | |
download | frameworks_base-15b3922aaa44513127d4d0edcbc0080725daf4fd.zip frameworks_base-15b3922aaa44513127d4d0edcbc0080725daf4fd.tar.gz frameworks_base-15b3922aaa44513127d4d0edcbc0080725daf4fd.tar.bz2 |
SysUI: Clear notification data when recreating status bar
This ensures we don't get an IndexOutOfBounds exception in
StatusBarIconController when adding the notifications back in.
Change-Id: I70ffd487223f95642ccdb41e9e5a3dde3ba6990d
TICKET: CYNGNOS-2215
Diffstat (limited to 'packages/SystemUI/src')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index 2d7fddc..816c771 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -3733,14 +3733,8 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, int nNotifs = mNotificationData.size(); ArrayList<Pair<String, StatusBarNotification>> notifications = new ArrayList<>(nNotifs); copyNotifications(notifications, mNotificationData); - // now remove all the notification views since we'll be re-inflating these with the copied - // data - for (int i = 0; i < nNotifs; i++) { - final NotificationData.Entry entry = mNotificationData.get(i); - if (entry != null) { - removeNotificationViews(entry.key, rankingMap); - } - } + // now remove all the notifications since we'll be re-creating these with the copied data + mNotificationData.clear(); if (mCustomTileListenerService != null) { try { |