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

Commit 96945fcc authored by Luca Zuccarini's avatar Luca Zuccarini Committed by Android (Google) Code Review
Browse files

Merge "Update keyboard dismissal logic in the AllAppsTransitionController." into tm-qpr-dev

parents c92b40f1 c7114def
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -232,7 +232,15 @@ public class AllAppsTransitionController
                // Reset pull back progress and alpha after switching states.
                ALL_APPS_PULL_BACK_TRANSLATION.set(this, 0f);
                ALL_APPS_PULL_BACK_ALPHA.set(this, 1f);

                // We only want to close the keyboard if the animation has completed successfully.
                // The reason is that with keyboard sync, if the user swipes down from All Apps with
                // the keyboard open and then changes their mind and swipes back up, we want the
                // keyboard to remain open. However an onCancel signal is sent to the listeners
                // (success = false), so we need to check for that.
                if (success) {
                    mLauncher.getAppsView().getSearchUiManager().getEditText().hideKeyboard();
                }
            });
        }