commit | e864cb28d129ed491f34377abd342885bb7fdbeb | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Thu Oct 21 15:40:01 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Oct 21 15:40:01 2021 +0000 |
tree | a0b6fe0aa621eac95cd25654a829eb25dec61575 | |
parent | d3d43cc3924de7e32241f6d06dfd8423aa29d5bf [diff] | |
parent | a41dbd320475f692f9930120d265a3e5b124dcaf [diff] |
Merge "Update TaskView corner radius as RecentsView scale changes" into sc-v2-dev am: d238074c39 am: a41dbd3204 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16101499 Change-Id: Ia3e15aab8905ec0d05284b4de072ee00f95f18da
diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 292e9d7..f7a9562 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java
@@ -343,6 +343,7 @@ } }); view.setTaskViewsResistanceTranslation(view.mTaskViewsSecondaryTranslation); + view.updateTaskViewsSnapshotRadius(); view.updatePageOffsets(); } @@ -3741,6 +3742,12 @@ .recentsViewSecondaryTranslation.value = translation); } + private void updateTaskViewsSnapshotRadius() { + for (int i = 0; i < getTaskViewCount(); i++) { + getTaskViewAt(i).updateSnapshotRadius(); + } + } + protected void setTaskViewsPrimarySplitTranslation(float translation) { mTaskViewsPrimarySplitTranslation = translation; for (int i = 0; i < getTaskViewCount(); i++) {
diff --git a/quickstep/src/com/android/quickstep/views/TaskView.java b/quickstep/src/com/android/quickstep/views/TaskView.java index 31a73e9..8d77e44 100644 --- a/quickstep/src/com/android/quickstep/views/TaskView.java +++ b/quickstep/src/com/android/quickstep/views/TaskView.java
@@ -1341,7 +1341,7 @@ invalidateOutline(); } - private void updateSnapshotRadius() { + void updateSnapshotRadius() { updateCurrentFullscreenParams(mSnapshotView.getPreviewPositionHelper()); mSnapshotView.setFullscreenParams(mCurrentFullscreenParams); }