Merge "Fix live tile flashing" into ub-launcher3-master

This commit is contained in:
Tracy Zhou 2019-02-14 01:04:58 +00:00 committed by Android (Google) Code Review
commit 435041de60
1 changed files with 6 additions and 1 deletions

View File

@ -16,8 +16,10 @@
package com.android.quickstep.views;
import static com.android.launcher3.AbstractFloatingView.TYPE_QUICKSTEP_PREVIEW;
import static com.android.launcher3.LauncherState.ALL_APPS;
import static com.android.launcher3.LauncherState.ALL_APPS_HEADER_EXTRA;
import static com.android.launcher3.LauncherState.NORMAL;
import static com.android.launcher3.LauncherState.OVERVIEW;
import static com.android.launcher3.QuickstepAppTransitionManagerImpl.ALL_APPS_PROGRESS_OFF_SCREEN;
import static com.android.launcher3.allapps.AllAppsTransitionController.ALL_APPS_PROGRESS;
import static com.android.launcher3.config.FeatureFlags.ENABLE_QUICKSTEP_LIVE_TILE;
@ -111,7 +113,10 @@ public class LauncherRecentsView extends RecentsView<Launcher> {
mTranslationYFactor = translationFactor;
setTranslationY(computeTranslationYForFactor(mTranslationYFactor));
if (ENABLE_QUICKSTEP_LIVE_TILE.get()) {
redrawLiveTile(false);
LauncherState state = mActivity.getStateManager().getState();
if (state == OVERVIEW || state == ALL_APPS) {
redrawLiveTile(false);
}
}
}