commit | a41dbd320475f692f9930120d265a3e5b124dcaf | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Thu Oct 21 15:25:44 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Oct 21 15:25:44 2021 +0000 |
tree | 332ba46e29e38958332a640f60d93098046b0cb4 | |
parent | 97904557482eb67cd1cfbd4a901aefd051270015 [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: I1fee1fac162188b7ce8378d1d6eff03e51e239d4
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); }