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

Commit 6bb4a9b3 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a bug where the panel got into a wrong state

Bug: 17939708
Change-Id: Ieaa9dc2fc0c92ce52b02ac4ea452df47ee492ac3
parent 59d9723d
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -774,6 +774,14 @@ public abstract class PanelView extends FrameLayout {
        requestLayout();
    }

    public void instantCollapse() {
        abortAnimations();
        setExpandedFraction(0f);
        if (mExpanding) {
            notifyExpandingFinished();
        }
    }

    private void abortAnimations() {
        cancelPeek();
        if (mHeightAnimator != null) {
+1 −1
Original line number Diff line number Diff line
@@ -3733,7 +3733,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
    }

    private void instantCollapseNotificationPanel() {
        mNotificationPanel.setExpandedFraction(0);
        mNotificationPanel.instantCollapse();
    }

    @Override