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

Commit d5f2cd6e authored by Matt Pietal's avatar Matt Pietal
Browse files

PIN view - Fix multiple ripples

Only apply animation on DOWN motion

Fixes: 180994829
Test: manual
Change-Id: Ifdb6e6319e063d577aecdf84dcb7197bd5c725d3
parent b9f76e10
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -69,7 +69,9 @@ public class NumPadButton extends AlphaOptimizedImageButton {

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        if (event.getActionMasked() == MotionEvent.ACTION_DOWN) {
            if (mAnimator != null) mAnimator.start();
        }
        return super.onTouchEvent(event);
    }

+1 −2
Original line number Diff line number Diff line
@@ -160,9 +160,8 @@ public class NumPadKey extends ViewGroup {
    public boolean onTouchEvent(MotionEvent event) {
        if (event.getActionMasked() == MotionEvent.ACTION_DOWN) {
            doHapticKeyClick();
        }

            if (mAnimator != null) mAnimator.start();
        }

        return super.onTouchEvent(event);
    }