Merge "Redraw live tile in updatePageOffsets()" into sc-dev
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user