mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Merge "Redraw live tile when dismissing all tasks" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
231ccd65bf
@@ -2024,6 +2024,16 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
|
||||
anim.add(ObjectAnimator.ofFloat(taskView, secondaryViewTranslate,
|
||||
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,
|
||||
@@ -2112,16 +2122,6 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
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
|
||||
if (animateTaskView) {
|
||||
taskView.setTranslationZ(0.1f);
|
||||
|
||||
Reference in New Issue
Block a user