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

Commit 57148ac6 authored by Johannes Gallmann's avatar Johannes Gallmann
Browse files

Don't play pre-commit velocity slow-down for IME predictive back animation

For the IME predictive back animation it's better to immediately play the post-commit animation when back is invoked instead of playing the velocity slow down in BackProgressAnimator. This ensures that pre-commit and post-commit phase of the animation don't feel disconnected.

Bug: 322836622
Flag: android.view.inputmethod.predictive_back_ime
Test: Manual, i.e. verifying on device that velocity slow down is not played
Change-Id: I8cb1c7fb25a1a822271cd170467e9566d98cb6ec
parent e84fdcef
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -489,7 +489,8 @@ public class WindowOnBackInvokedDispatcher implements OnBackInvokedDispatcher {
                    return;
                }
                OnBackAnimationCallback animationCallback = getBackAnimationCallback();
                if (animationCallback != null) {
                if (animationCallback != null
                        && !(callback instanceof ImeBackAnimationController)) {
                    mProgressAnimator.onBackInvoked(callback::onBackInvoked);
                } else {
                    mProgressAnimator.reset();