Merge "Update TaskView corner radius as RecentsView scale changes" into sc-v2-dev

This commit is contained in:
TreeHugger Robot 2021-10-21 15:12:16 +00:00 committed by Android (Google) Code Review
commit d238074c39
2 changed files with 8 additions and 1 deletions

View File

@ -343,6 +343,7 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
} }
}); });
view.setTaskViewsResistanceTranslation(view.mTaskViewsSecondaryTranslation); view.setTaskViewsResistanceTranslation(view.mTaskViewsSecondaryTranslation);
view.updateTaskViewsSnapshotRadius();
view.updatePageOffsets(); view.updatePageOffsets();
} }
@ -3741,6 +3742,12 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
.recentsViewSecondaryTranslation.value = translation); .recentsViewSecondaryTranslation.value = translation);
} }
private void updateTaskViewsSnapshotRadius() {
for (int i = 0; i < getTaskViewCount(); i++) {
getTaskViewAt(i).updateSnapshotRadius();
}
}
protected void setTaskViewsPrimarySplitTranslation(float translation) { protected void setTaskViewsPrimarySplitTranslation(float translation) {
mTaskViewsPrimarySplitTranslation = translation; mTaskViewsPrimarySplitTranslation = translation;
for (int i = 0; i < getTaskViewCount(); i++) { for (int i = 0; i < getTaskViewCount(); i++) {

View File

@ -1341,7 +1341,7 @@ public class TaskView extends FrameLayout implements Reusable {
invalidateOutline(); invalidateOutline();
} }
private void updateSnapshotRadius() { void updateSnapshotRadius() {
updateCurrentFullscreenParams(mSnapshotView.getPreviewPositionHelper()); updateCurrentFullscreenParams(mSnapshotView.getPreviewPositionHelper());
mSnapshotView.setFullscreenParams(mCurrentFullscreenParams); mSnapshotView.setFullscreenParams(mCurrentFullscreenParams);
} }