diff options
author | Matthias Yzusqui <myzb.dev@gmail.com> | 2016-02-12 10:47:38 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-02-13 09:27:34 -0800 |
commit | 6e26521ff5b53db8a9b14be7286c737a62bcd068 (patch) | |
tree | c9165e45f9a1a7263319a61dcef853e756067da7 /packages/SystemUI | |
parent | 43e3f86b25099220cf3cc37133e042d17f64f86b (diff) | |
download | frameworks_base-6e26521ff5b53db8a9b14be7286c737a62bcd068.zip frameworks_base-6e26521ff5b53db8a9b14be7286c737a62bcd068.tar.gz frameworks_base-6e26521ff5b53db8a9b14be7286c737a62bcd068.tar.bz2 |
Revert "SystemUI: survive notification update spam"
This reverts commit 6d24aa43398a9888bc93d3d4afe0eccd24211356.
Fixes janky headsup animation when a (new) headsup is displayed.
RM-208
Change-Id: Icf2e620fec696b55ac611cba47321a23acf0120c
Diffstat (limited to 'packages/SystemUI')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 14 |
1 files changed, 2 insertions, 12 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 ec0eb78..cfde68c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -241,7 +241,6 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, private static final int MSG_CLOSE_PANELS = 1001; private static final int MSG_OPEN_SETTINGS_PANEL = 1002; private static final int MSG_LAUNCH_TRANSITION_TIMEOUT = 1003; - private static final int MSG_UPDATE_NOTIFICATIONS = 1004; // 1020-1040 reserved for BaseStatusBar // Time after we abort the launch transition. @@ -1913,7 +1912,8 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, return entry.row.getParent() instanceof NotificationStackScrollLayout; } - private void handleUpdateNotifications() { + @Override + protected void updateNotifications() { mNotificationData.filterAndSort(); updateNotificationShade(); @@ -1921,13 +1921,6 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, } @Override - protected void updateNotifications() { - if (!mHandler.hasMessages(MSG_UPDATE_NOTIFICATIONS)) { - mHandler.sendEmptyMessage(MSG_UPDATE_NOTIFICATIONS); - } - } - - @Override protected void updateRowStates() { super.updateRowStates(); mNotificationPanel.notifyVisibleChildrenChanged(); @@ -2577,9 +2570,6 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, case MSG_LAUNCH_TRANSITION_TIMEOUT: onLaunchTransitionTimeout(); break; - case MSG_UPDATE_NOTIFICATIONS: - handleUpdateNotifications(); - break; } } } |