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

Commit 29bc8a9a authored by Adnan's avatar Adnan Committed by Adnan Begovic
Browse files

SystemUI: Clear disappearing children and remove HeadsUp on recreate.

    - Since some views animate in and out of visibility
    the call to removeAllViews on the mStatusBarContainer may still
    keep a reference to the view.

    - Also remove mHeadsUpNotificationView from the window manager if
    it's not null.

Change-Id: I5ced26e0f36362e89779bd7c6dac4d8235e0c0e9
(cherry picked from commit a8712a01)
parent 4be21a86
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3253,7 +3253,14 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,

    private void recreateStatusBar() {
        mRecreating = true;

        if (mHeadsUpNotificationView != null) {
            removeHeadsUpView();
            mHeadsUpNotificationView = null;
        }

        mStatusBarContainer.removeAllViews();
        mStatusBarContainer.clearDisappearingChildren();

        // extract icons from the soon-to-be recreated viewgroup.
        int nIcons = mStatusIcons.getChildCount();