Merge "Update keyboard dismissal logic in the AllAppsTransitionController." into tm-qpr-dev am: 96945fcc24
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18868377 Change-Id: I857a66b2a53769a4d39432939df47b8f3fcd8dff Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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);
|
||||
mLauncher.getAppsView().getSearchUiManager().getEditText().hideKeyboard();
|
||||
|
||||
// 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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user