Merge "Redraw live tile when dismissing all tasks" into sc-dev
This commit is contained in:
commit
231ccd65bf
1 file changed
+10
-10
@@ -2024,6 +2024,16 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
|||||||
|
|
||||||
anim.add(ObjectAnimator.ofFloat(taskView, secondaryViewTranslate,
|
anim.add(ObjectAnimator.ofFloat(taskView, secondaryViewTranslate,
|
||||||
verticalFactor * secondaryTaskDimension).setDuration(duration), LINEAR, sp);
|
verticalFactor * secondaryTaskDimension).setDuration(duration), LINEAR, sp);
|
||||||
|
|
||||||
|
if (LIVE_TILE.get() && taskView.isRunningTask()) {
|
||||||
|
anim.addOnFrameCallback(() -> {
|
||||||
|
mLiveTileTaskViewSimulator.taskSecondaryTranslation.value =
|
||||||
|
mOrientationHandler.getSecondaryValue(
|
||||||
|
taskView.getTranslationX(),
|
||||||
|
taskView.getTranslationY());
|
||||||
|
redrawLiveTile();
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public PendingAnimation createTaskDismissAnimation(TaskView taskView, boolean animateTaskView,
|
public PendingAnimation createTaskDismissAnimation(TaskView taskView, boolean animateTaskView,
|
||||||
@@ -2112,16 +2122,6 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
|||||||
anim.addOnFrameCallback(this::updateCurveProperties);
|
anim.addOnFrameCallback(this::updateCurveProperties);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (LIVE_TILE.get() && getRunningTaskView() == taskView) {
|
|
||||||
anim.addOnFrameCallback(() -> {
|
|
||||||
mLiveTileTaskViewSimulator.taskSecondaryTranslation.value =
|
|
||||||
mOrientationHandler.getSecondaryValue(
|
|
||||||
taskView.getTranslationX(),
|
|
||||||
taskView.getTranslationY());
|
|
||||||
redrawLiveTile();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add a tiny bit of translation Z, so that it draws on top of other views
|
// Add a tiny bit of translation Z, so that it draws on top of other views
|
||||||
if (animateTaskView) {
|
if (animateTaskView) {
|
||||||
taskView.setTranslationZ(0.1f);
|
taskView.setTranslationZ(0.1f);
|
||||||
|
|||||||
Reference in new issue
Block a user