Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e26521f authored by Matthias Yzusqui's avatar Matthias Yzusqui Committed by Gerrit Code Review
Browse files

Revert "SystemUI: survive notification update spam"

This reverts commit 6d24aa43.

Fixes janky headsup animation when a (new) headsup is displayed.

RM-208
Change-Id: Icf2e620fec696b55ac611cba47321a23acf0120c
parent 43e3f86b
Loading
Loading
Loading
Loading
+2 −12
Original line number Diff line number Diff line
@@ -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,20 +1912,14 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
        return entry.row.getParent() instanceof NotificationStackScrollLayout;
    }

    private void handleUpdateNotifications() {
    @Override
    protected void updateNotifications() {
        mNotificationData.filterAndSort();

        updateNotificationShade();
        mIconController.updateNotificationIcons(mNotificationData);
    }

    @Override
    protected void updateNotifications() {
        if (!mHandler.hasMessages(MSG_UPDATE_NOTIFICATIONS)) {
            mHandler.sendEmptyMessage(MSG_UPDATE_NOTIFICATIONS);
        }
    }

    @Override
    protected void updateRowStates() {
        super.updateRowStates();
@@ -2577,9 +2570,6 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
                case MSG_LAUNCH_TRANSITION_TIMEOUT:
                    onLaunchTransitionTimeout();
                    break;
                case MSG_UPDATE_NOTIFICATIONS:
                    handleUpdateNotifications();
                    break;
            }
        }
    }