diff options
author | Amith Yamasani <yamasani@google.com> | 2015-04-28 10:28:09 -0700 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2015-04-28 10:28:09 -0700 |
commit | 24bd0be558838db4ff975e97fa986eb317773fc5 (patch) | |
tree | 06ee8698891bb636f3d89e20f0bce373ff94ecd6 /packages | |
parent | 0c2d0deb3666c7bb9c315212f5caec1bc1945611 (diff) | |
download | frameworks_base-24bd0be558838db4ff975e97fa986eb317773fc5.zip frameworks_base-24bd0be558838db4ff975e97fa986eb317773fc5.tar.gz frameworks_base-24bd0be558838db4ff975e97fa986eb317773fc5.tar.bz2 |
Mark actually seen notifications as seen
This was missing from a previous CL that was meant to have it.
Change-Id: I856cee8708d988630778ba88b70deaad8730fc1f
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java | 13 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 1 |
2 files changed, 1 insertions, 13 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java index 7271469..92bd0df 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java @@ -708,18 +708,6 @@ public abstract class BaseStatusBar extends SystemUI implements mNotificationListener.setNotificationsShown(keys); } - protected void setNotificationsShownAll() { - ArrayList<Entry> activeNotifications = mNotificationData.getActiveNotifications(); - final int N = activeNotifications.size(); - - String[] keys = new String[N]; - for (int i = 0; i < N; i++) { - NotificationData.Entry entry = activeNotifications.get(i); - keys[i] = entry.key; - } - setNotificationsShown(keys); - } - protected boolean isCurrentProfile(int userId) { synchronized (mCurrentProfiles) { return userId == UserHandle.USER_ALL || mCurrentProfiles.get(userId) != null; @@ -1701,7 +1689,6 @@ public abstract class BaseStatusBar extends SystemUI implements boolean clearNotificationEffects = (mState == StatusBarState.SHADE || mState == StatusBarState.SHADE_LOCKED); mBarService.onPanelRevealed(clearNotificationEffects); - setNotificationsShownAll(); } else { mBarService.onPanelHidden(); } 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 6b17589..bf85ed5 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -2852,6 +2852,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, } catch (RemoteException e) { // Ignore. } + setNotificationsShown(newlyVisibleAr); } // State logging |