Merge "Update corner radius of both snapshot in app pair" into sc-v2-dev am: 916873e7ab

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16240047

Change-Id: Ie8f920e85a72dc79d024fd3407180a89ff99626a
This commit is contained in:
TreeHugger Robot
2021-11-11 21:19:07 +00:00
committed by Automerger Merge Worker
2 changed files with 8 additions and 4 deletions
@@ -14,7 +14,6 @@ import androidx.annotation.Nullable;
import com.android.launcher3.DeviceProfile; import com.android.launcher3.DeviceProfile;
import com.android.launcher3.R; import com.android.launcher3.R;
import com.android.launcher3.util.RunnableList; import com.android.launcher3.util.RunnableList;
import com.android.launcher3.util.SplitConfigurationOptions;
import com.android.launcher3.util.SplitConfigurationOptions.StagedSplitBounds; import com.android.launcher3.util.SplitConfigurationOptions.StagedSplitBounds;
import com.android.launcher3.util.TransformingTouchDelegate; import com.android.launcher3.util.TransformingTouchDelegate;
import com.android.quickstep.RecentsModel; import com.android.quickstep.RecentsModel;
@@ -241,4 +240,10 @@ public class GroupedTaskView extends TaskView {
taskIconHeight, mPrimaryTempRect, mSecondaryTempRect, taskIconHeight, mPrimaryTempRect, mSecondaryTempRect,
isRtl, deviceProfile, mSplitBoundsConfig); isRtl, deviceProfile, mSplitBoundsConfig);
} }
@Override
protected void updateSnapshotRadius() {
super.updateSnapshotRadius();
mSnapshotView2.setFullscreenParams(mCurrentFullscreenParams);
}
} }
@@ -92,7 +92,6 @@ import com.android.quickstep.TaskThumbnailCache;
import com.android.quickstep.TaskUtils; import com.android.quickstep.TaskUtils;
import com.android.quickstep.TaskViewUtils; import com.android.quickstep.TaskViewUtils;
import com.android.quickstep.util.CancellableTask; import com.android.quickstep.util.CancellableTask;
import com.android.quickstep.util.LauncherSplitScreenListener;
import com.android.quickstep.util.RecentsOrientedState; import com.android.quickstep.util.RecentsOrientedState;
import com.android.quickstep.util.TaskCornerRadius; import com.android.quickstep.util.TaskCornerRadius;
import com.android.quickstep.util.TransformParams; import com.android.quickstep.util.TransformParams;
@@ -369,7 +368,7 @@ public class TaskView extends FrameLayout implements Reusable {
private float mGridProgress; private float mGridProgress;
private float mNonGridScale = 1; private float mNonGridScale = 1;
private float mDismissScale = 1; private float mDismissScale = 1;
private final FullscreenDrawParams mCurrentFullscreenParams; protected final FullscreenDrawParams mCurrentFullscreenParams;
protected final StatefulActivity mActivity; protected final StatefulActivity mActivity;
// Various causes of changing primary translation, which we aggregate to setTranslationX/Y(). // Various causes of changing primary translation, which we aggregate to setTranslationX/Y().
@@ -1374,7 +1373,7 @@ public class TaskView extends FrameLayout implements Reusable {
invalidateOutline(); invalidateOutline();
} }
void updateSnapshotRadius() { protected void updateSnapshotRadius() {
updateCurrentFullscreenParams(mSnapshotView.getPreviewPositionHelper()); updateCurrentFullscreenParams(mSnapshotView.getPreviewPositionHelper());
mSnapshotView.setFullscreenParams(mCurrentFullscreenParams); mSnapshotView.setFullscreenParams(mCurrentFullscreenParams);
} }