commit | 9c7affaa7f7bcefa4a4ddffc02dcc191a1f07cec | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Thu Oct 21 15:26:16 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Oct 21 15:26:16 2021 +0000 |
tree | 1fcb29bbf6082dc1c15426039ce49620f9e37767 | |
parent | 6ab67cfb3972a42279a95a0b71a6b6f8127db5aa [diff] | |
parent | d238074c39ad27b03ecf2c97b2d99295f83d9829 [diff] |
Merge "Update TaskView corner radius as RecentsView scale changes" into sc-v2-dev am: d238074c39 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16101499 Change-Id: I75493afd9b53f6da1bc7c03bf6025e9bc4bbb492
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); }