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

Commit fa6f24d9 authored by Felix Stern's avatar Felix Stern
Browse files

Fix duration and insetsInterpolator when the IME is shown in landscape

The bug is caused by the wrong condition check. The condition should be !hasZeroInsetsIme instead of hasZeroInsetsIme.

Change-Id: I55edbcc49cdc10fe8641df75936cbc3fe2578832
Test: manual: Open app with animation callback in landscape mode and hide IME
Flag: EXEMPT bugfix
Bug: 349213527
parent 98f28c99
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -488,7 +488,7 @@ public class InsetsController implements WindowInsetsController, InsetsAnimation
        @Override
        public Interpolator getInsetsInterpolator(boolean hasZeroInsetsIme) {
            if ((mRequestedTypes & ime()) != 0) {
                if (mHasAnimationCallbacks && hasZeroInsetsIme) {
                if (mHasAnimationCallbacks && !hasZeroInsetsIme) {
                    return SYNC_IME_INTERPOLATOR;
                } else if (mShow) {
                    return LINEAR_OUT_SLOW_IN_INTERPOLATOR;
@@ -536,7 +536,7 @@ public class InsetsController implements WindowInsetsController, InsetsAnimation
        @Override
        public long getDurationMs(boolean hasZeroInsetsIme) {
            if ((mRequestedTypes & ime()) != 0) {
                if (mHasAnimationCallbacks && hasZeroInsetsIme) {
                if (mHasAnimationCallbacks && !hasZeroInsetsIme) {
                    return ANIMATION_DURATION_SYNC_IME_MS;
                } else {
                    return ANIMATION_DURATION_UNSYNC_IME_MS;