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

Commit 9c956384 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by Android Git Automerger
Browse files

am 1d071ce9: Make sure expandingFinished gets called when going into QS

* commit '1d071ce9':
  Make sure expandingFinished gets called when going into QS
parents 25975f1b 1d071ce9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -965,6 +965,7 @@ public class NotificationPanelView extends PanelView implements
    private void onQsExpansionStarted(int overscrollAmount) {
        cancelQsAnimation();
        cancelHeightAnimator();
        notifyExpandingFinished();

        // Reset scroll position and apply that position to the expanded height.
        float height = mQsExpansionHeight - mScrollView.getScrollY() - overscrollAmount;
+2 −2
Original line number Diff line number Diff line
@@ -111,7 +111,7 @@ public abstract class PanelView extends FrameLayout {
     */
    private float mNextCollapseSpeedUpFactor = 1.0f;

    private boolean mExpanding;
    protected boolean mExpanding;
    private boolean mGestureWaitForTouchSlop;
    private boolean mIgnoreXTouchSlop;
    private Runnable mPeekRunnable = new Runnable() {
@@ -137,7 +137,7 @@ public abstract class PanelView extends FrameLayout {
        }
    }

    private void notifyExpandingFinished() {
    protected final void notifyExpandingFinished() {
        if (mExpanding) {
            mExpanding = false;
            onExpandingFinished();