Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2cd2f77 authored by Zak Cohen's avatar Zak Cohen
Browse files

Update TaskOverlay corner radius as fullscreen parameters are updated.

Bug: 230470826
Test: Build and run
Change-Id: I3b6914bf7423ec60d28d2d06ee5225de1b6862c1
parent bf33e85c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -316,6 +316,10 @@ public class TaskOverlayFactory implements ResourceBasedOverride {
                    Toast.LENGTH_LONG).show();
        }

        /** Called when the snapshot has updated its full screen drawing parameters. */
        public void setFullscreenParams(TaskView.FullscreenDrawParams fullscreenParams) {
        }

        private class ScreenshotSystemShortcut extends SystemShortcut {

            private final BaseDraggingActivity mActivity;
+1 −0
Original line number Diff line number Diff line
@@ -283,6 +283,7 @@ public class TaskThumbnailView extends View {

    public void setFullscreenParams(TaskView.FullscreenDrawParams fullscreenParams) {
        mFullscreenParams = fullscreenParams;
        getTaskOverlay().setFullscreenParams(fullscreenParams);
        invalidate();
    }

+1 −2
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@ import static android.view.Display.DEFAULT_DISPLAY;
import static android.widget.Toast.LENGTH_SHORT;

import static com.android.launcher3.AbstractFloatingView.TYPE_TASK_MENU;
import static com.android.launcher3.LauncherState.OVERVIEW_SPLIT_SELECT;
import static com.android.launcher3.Utilities.comp;
import static com.android.launcher3.Utilities.getDescendantCoordRelativeToAncestor;
import static com.android.launcher3.anim.Interpolators.ACCEL_DEACCEL;
@@ -1026,7 +1025,7 @@ public class TaskView extends FrameLayout implements Reusable {
    }

    public float getTaskCornerRadius() {
        return TaskCornerRadius.get(mActivity);
        return mCurrentFullscreenParams.mCornerRadius;
    }

    @Override