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

Commit d5598e92 authored by Aaron Liu's avatar Aaron Liu
Browse files

Bouncer pin appear flashes the message area

cleaning up this transition a bit where the message will briefly show if
you are tracking your finger slightly from LS.

Test: Track bouncer to show apper animation.
Fixes: 271576016
Change-Id: Ic8bd2d0e015ca407ab2a08cd6e0646c1c277f88e
parent f885dad1
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -217,9 +217,11 @@ public class KeyguardPINView extends KeyguardPinBasedInputView {
    private void animate(float progress) {
        Interpolator standardDecelerate = Interpolators.STANDARD_DECELERATE;
        Interpolator legacyDecelerate = Interpolators.LEGACY_DECELERATE;
        float standardProgress = standardDecelerate.getInterpolation(progress);

        mBouncerMessageView.setTranslationY(
                mYTrans - mYTrans * standardDecelerate.getInterpolation(progress));
                mYTrans - mYTrans * standardProgress);
        mBouncerMessageView.setAlpha(standardProgress);

        for (int i = 0; i < mViews.length; i++) {
            View[] row = mViews[i];
@@ -236,7 +238,7 @@ public class KeyguardPINView extends KeyguardPinBasedInputView {
                view.setAlpha(scaledProgress);
                int yDistance = mYTrans + mYTransOffset * i;
                view.setTranslationY(
                        yDistance - (yDistance * standardDecelerate.getInterpolation(progress)));
                        yDistance - (yDistance * standardProgress));
                if (view instanceof NumPadAnimationListener) {
                    ((NumPadAnimationListener) view).setProgress(scaledProgress);
                }