Introduce feature education for AllApps Search

Preview: https://drive.google.com/file/d/1eXf3K6kFh0bHcYlpwW_voSRjY9RQalJN/view?usp=sharing&resourcekey=0-IABjrtXM5JhHvSf-7yc4tg

Edu can be dismissed permanently by pressing "Got it" button or typing. Swiping down defers edu until next visit to all apps

- Move fallback search to quickstep
Bug: 178100472
Test: Manual

Change-Id: I920aab366330758e81f8b9fa62736abf82fe5cac
This commit is contained in:
Samuel Fufa
2021-01-19 13:12:10 -06:00
parent 867b62a2d0
commit 062a8fd979
10 changed files with 520 additions and 9 deletions

View File

@@ -270,11 +270,10 @@ public class AllAppsTransitionController implements StateHandler<LauncherState>,
if (Float.compare(mProgress, 0f) == 0) {
mLauncher.getLiveSearchManager().start();
EditText editText = mAppsView.getSearchUiManager().getEditText();
if (editText != null) {
if (editText != null && !mInsetController.showSearchEduIfNecessary()) {
editText.requestFocus();
}
}
else {
} else {
mLauncher.getLiveSearchManager().stop();
}
// TODO: should make the controller hide synchronously