[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
2022-10-19 16:58:22 -07:00
parent 821ef94974
commit 4ed3dfc28a
3 changed files with 36 additions and 7 deletions

View File

@@ -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();
}