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

Commit d18b86ff authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a bug where the panel could be stuck

Test: collapse the panels, let go, tap quickly, panel isn't stuck
Bug: 62602000
Change-Id: I449bcd4a6207c054eb5d536ba48ff8f05e26eb9a
parent beba1bf9
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -303,10 +303,10 @@ public abstract class PanelView extends FrameLayout {
                trackMovement(event);
                if (!mGestureWaitForTouchSlop || (mHeightAnimator != null && !mHintAnimationRunning)
                        || mPeekAnimator != null) {
                    cancelHeightAnimator();
                    cancelPeek();
                    mTouchSlopExceeded = (mHeightAnimator != null && !mHintAnimationRunning)
                            || mPeekAnimator != null;
                    cancelHeightAnimator();
                    cancelPeek();
                    onTrackingStarted();
                }
                if (isFullyCollapsed() && !mHeadsUpManager.hasPinnedHeadsUp()) {
@@ -607,6 +607,9 @@ public abstract class PanelView extends FrameLayout {

    protected void cancelHeightAnimator() {
        if (mHeightAnimator != null) {
            if (mHeightAnimator.isRunning()) {
                mPanelUpdateWhenAnimatorEnds = false;
            }
            mHeightAnimator.cancel();
        }
        endClosing();