[Toast] Use a BaseSearchConfig for launcher3 to read allapps device config.

Bug: 251387263
Test: local
Change-Id: I92c52caff377e627305bc7999ae0205fe6269968
This commit is contained in:
Becky Qiu committed 2022-10-21 17:11:38 -07:00
1 parent 821ef94974
commit 4ed3dfc28a
3 files changed
+36 -7

No files matched your search

@@ -228,7 +228,7 @@ public class AllAppsTransitionController
StateAnimationConfig config, PendingAnimation builder) {
if (mLauncher.isInState(ALL_APPS) && !ALL_APPS.equals(toState)) {
// For atomic animations, we close the keyboard immediately.
if (!config.userControlled && !mLauncher.isKeyboardSyncEnabled()) {
if (!config.userControlled && !mLauncher.getSearchConfig().isKeyboardSyncEnabled()) {
mLauncher.getAppsView().getSearchUiManager().getEditText().hideKeyboard();
}