Moving slice loading on a background thread

> Also fixing slice icon loading, such that the request is cancelled
  if views are recycled quickly
> Loading widget label on dg thread and cancelling request if views
  are recycled quickly.

Bug: 179068415
Test: verified locally
Change-Id: Id5a524e2bf596862330a8170394aef9ffd708544
This commit is contained in:
Sunny Goyal
2021-02-03 10:22:28 -08:00
parent f4d19f4614
commit 79e52fc23b
8 changed files with 235 additions and 129 deletions

View File

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