diff --git a/src/com/android/launcher3/anim/KeyboardInsetAnimationCallback.java b/src/com/android/launcher3/anim/KeyboardInsetAnimationCallback.java index 39386fa2ac..6806b0f802 100644 --- a/src/com/android/launcher3/anim/KeyboardInsetAnimationCallback.java +++ b/src/com/android/launcher3/anim/KeyboardInsetAnimationCallback.java @@ -100,7 +100,7 @@ public class KeyboardInsetAnimationCallback extends WindowInsetsAnimation.Callba } else { // Manually controlled animation: Set translation to keyboard height. int translationY = -windowInsets.getInsets(WindowInsets.Type.ime()).bottom; - if (mView.getParent() instanceof View) { + if (translationY < 0 && mView.getParent() instanceof View) { // Offset any translation of the parent (e.g. All Apps parallax). translationY -= ((View) mView.getParent()).getTranslationY(); }