Merge "Fix widget clipping in widget back animation" into udc-dev am: 80e9a3b64e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23267682 Change-Id: Ief7aae5b3bb3ef3b089d122c6ced75979e91514f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
b2fba3db71
1 file changed
+7
-3
@@ -47,6 +47,7 @@ import com.android.launcher3.views.FloatingView;
|
|||||||
import com.android.launcher3.widget.LauncherAppWidgetHostView;
|
import com.android.launcher3.widget.LauncherAppWidgetHostView;
|
||||||
import com.android.quickstep.util.RectFSpringAnim;
|
import com.android.quickstep.util.RectFSpringAnim;
|
||||||
import com.android.quickstep.util.StaggeredWorkspaceAnim;
|
import com.android.quickstep.util.StaggeredWorkspaceAnim;
|
||||||
|
import com.android.quickstep.util.TaskViewSimulator;
|
||||||
import com.android.quickstep.views.FloatingWidgetView;
|
import com.android.quickstep.views.FloatingWidgetView;
|
||||||
import com.android.quickstep.views.RecentsView;
|
import com.android.quickstep.views.RecentsView;
|
||||||
import com.android.quickstep.views.TaskView;
|
import com.android.quickstep.views.TaskView;
|
||||||
@@ -160,13 +161,16 @@ public class LauncherSwipeHandlerV2 extends
|
|||||||
Rect crop = new Rect();
|
Rect crop = new Rect();
|
||||||
// We can assume there is only one remote target here because staged split never animates
|
// We can assume there is only one remote target here because staged split never animates
|
||||||
// into the app icon, only into the homescreen
|
// into the app icon, only into the homescreen
|
||||||
mRemoteTargetHandles[0].getTaskViewSimulator().getCurrentCropRect().roundOut(crop);
|
RemoteTargetGluer.RemoteTargetHandle remoteTargetHandle = mRemoteTargetHandles[0];
|
||||||
|
TaskViewSimulator tvs = remoteTargetHandle.getTaskViewSimulator();
|
||||||
|
// This is to set up the inverse matrix in the simulator
|
||||||
|
tvs.apply(remoteTargetHandle.getTransformParams());
|
||||||
|
tvs.getCurrentCropRect().roundOut(crop);
|
||||||
Size windowSize = new Size(crop.width(), crop.height());
|
Size windowSize = new Size(crop.width(), crop.height());
|
||||||
int fallbackBackgroundColor =
|
int fallbackBackgroundColor =
|
||||||
FloatingWidgetView.getDefaultBackgroundColor(mContext, runningTaskTarget);
|
FloatingWidgetView.getDefaultBackgroundColor(mContext, runningTaskTarget);
|
||||||
FloatingWidgetView floatingWidgetView = FloatingWidgetView.getFloatingWidgetView(mActivity,
|
FloatingWidgetView floatingWidgetView = FloatingWidgetView.getFloatingWidgetView(mActivity,
|
||||||
hostView, backgroundLocation, windowSize,
|
hostView, backgroundLocation, windowSize, tvs.getCurrentCornerRadius(),
|
||||||
mRemoteTargetHandles[0].getTaskViewSimulator().getCurrentCornerRadius(),
|
|
||||||
isTargetTranslucent, fallbackBackgroundColor);
|
isTargetTranslucent, fallbackBackgroundColor);
|
||||||
|
|
||||||
return new FloatingViewHomeAnimationFactory(floatingWidgetView) {
|
return new FloatingViewHomeAnimationFactory(floatingWidgetView) {
|
||||||
|
|||||||
Reference in new issue
Block a user