From 192a014cde72680e8576b683a5a5355bfe85f8ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pomini?= Date: Mon, 8 Aug 2022 16:16:18 +0000 Subject: [PATCH] Hide keyboard when transitioning from all-apps state to overview state. Sample video: http://shortn/_Jy0ynsszTd (tablet), http://shortn/_BoBSuQGdMT (mobile phone) Test: manual Bug: b/240637768 Change-Id: I4c1e9f779f8c7dbe7acdb306c22d5b18965da163 --- .../android/launcher3/allapps/AllAppsTransitionController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/launcher3/allapps/AllAppsTransitionController.java b/src/com/android/launcher3/allapps/AllAppsTransitionController.java index bdab03f5c6..597edefde0 100644 --- a/src/com/android/launcher3/allapps/AllAppsTransitionController.java +++ b/src/com/android/launcher3/allapps/AllAppsTransitionController.java @@ -227,7 +227,7 @@ public class AllAppsTransitionController @Override public void setStateWithAnimation(LauncherState toState, StateAnimationConfig config, PendingAnimation builder) { - if (NORMAL.equals(toState) && mLauncher.isInState(ALL_APPS)) { + if (mLauncher.isInState(ALL_APPS) && !ALL_APPS.equals(toState)) { builder.addEndListener(success -> { // Reset pull back progress and alpha after switching states. ALL_APPS_PULL_BACK_TRANSLATION.set(this, 0f);