commit | 8061a0712e6069cfcb2e717abecebe0b4d602152 | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Thu Apr 22 00:41:57 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Apr 22 00:41:57 2021 +0000 |
tree | e8c4579f197a57ef53c8eb33d21f99021b6c765b | |
parent | 042c41fcdcda696516b5033f0575b6a9d0c60b46 [diff] | |
parent | cc67d7281362427c0dd7c92305e4ae6276858145 [diff] |
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
diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index e4fa1aa..6ed490d 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java
@@ -1420,7 +1420,9 @@ mTaskListChangeId = -1; mFocusedTaskId = -1; - mRecentsAnimationController = null; + if (mRecentsAnimationController != null) { + finishRecentsAnimation(true /* toRecents */, null); + } mLiveTileParams.setTargetSet(null); mLiveTileTaskViewSimulator.setDrawsBelowRecents(true); @@ -2526,6 +2528,10 @@ ? ((TaskView) child).getPrimaryTaskOffsetTranslationProperty() : mOrientationHandler.getPrimaryViewTranslate(); translationProperty.set(child, totalTranslation); + if (LIVE_TILE.get() && mEnableDrawingLiveTile && i == getRunningTaskIndex()) { + mLiveTileTaskViewSimulator.taskPrimaryTranslation.value = totalTranslation; + redrawLiveTile(); + } } updateCurveProperties(); }