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

Commit 2322ae82 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by Android (Google) Code Review
Browse files

Merge "Improved interception logic of the PanelView"

parents 11da8a8a 172e9141
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -526,11 +526,14 @@ public class PanelView extends FrameLayout {

        switch (event.getActionMasked()) {
            case MotionEvent.ACTION_DOWN:
                if (mTimeAnimator.isRunning()) {
                    mTimeAnimator.cancel(); // end any outstanding animations
                    return true;
                }
                mInitialTouchY = y;
                mInitialTouchX = x;
                initVelocityTracker();
                trackMovement(event);
                mTimeAnimator.cancel(); // end any outstanding animations
                break;
            case MotionEvent.ACTION_POINTER_UP:
                final int upPointer = event.getPointerId(event.getActionIndex());
@@ -569,7 +572,7 @@ public class PanelView extends FrameLayout {
    }

    protected boolean isScrolledToBottom() {
        return false;
        return true;
    }

    protected float getContentHeight() {