Merge "Revert "Redraw live tile in updatePageOffsets()"" into sc-dev

This commit is contained in:
Hongwei Wang
2021-04-23 01:14:12 +00:00
committed by Android (Google) Code Review
@@ -1515,9 +1515,7 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
mTaskListChangeId = -1;
mFocusedTaskId = -1;
if (mRecentsAnimationController != null) {
finishRecentsAnimation(true /* toRecents */, null);
}
mRecentsAnimationController = null;
mLiveTileParams.setTargetSet(null);
mLiveTileTaskViewSimulator.setDrawsBelowRecents(true);
@@ -2622,10 +2620,6 @@ 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();
}