Merge "Redraw live tile in updatePageOffsets()" into sc-dev am: 5caf5e66ec

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14296935

Change-Id: Ia99205e9e87dcfd8195442f43cc87a4a7b78c58f
This commit is contained in:
Tony Wickham
2021-04-24 00:13:32 +00:00
committed by Automerger Merge Worker
@@ -1513,7 +1513,14 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
mTaskListChangeId = -1;
mFocusedTaskId = -1;
mRecentsAnimationController = null;
if (mRecentsAnimationController != null) {
if (LIVE_TILE.get() && mEnableDrawingLiveTile) {
// We are still drawing the live tile, finish it now to clean up.
finishRecentsAnimation(true /* toRecents */, null);
} else {
mRecentsAnimationController = null;
}
}
mLiveTileParams.setTargetSet(null);
mLiveTileTaskViewSimulator.setDrawsBelowRecents(true);
@@ -2694,6 +2701,10 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
? ((TaskView) child).getPrimaryTaskOffsetTranslationProperty()
: mOrientationHandler.getPrimaryViewTranslate();
translationProperty.set(child, totalTranslation);
if (LIVE_TILE.get() && mEnableDrawingLiveTile && i == getRunningTaskIndex()) {
mLiveTileTaskViewSimulator.taskPrimaryTranslation.value = totalTranslation;
redrawLiveTile();
}
}
updateCurveProperties();
}