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

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

Change-Id: I54eee0548ab64df617eac5e51ef46168193816d3
This commit is contained in:
TreeHugger Robot
2021-04-22 00:41:57 +00:00
committed by Automerger Merge Worker
@@ -1420,7 +1420,9 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
mTaskListChangeId = -1;
mFocusedTaskId = -1;
mRecentsAnimationController = null;
if (mRecentsAnimationController != null) {
finishRecentsAnimation(true /* toRecents */, null);
}
mLiveTileParams.setTargetSet(null);
mLiveTileTaskViewSimulator.setDrawsBelowRecents(true);
@@ -2526,6 +2528,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();
}