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

Commit 15a85766 authored by Miranda Kephart's avatar Miranda Kephart Committed by Automerger Merge Worker
Browse files

Merge "Make screenshot animation display over cutout area" into sc-dev am:...

Merge "Make screenshot animation display over cutout area" into sc-dev am: 40c606b4 am: a6e79f0c

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15017445

Change-Id: I69aae7a634f47ebad3600fad18835e37c61a2317
parents 7ef3cfc8 a6e79f0c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -479,6 +479,11 @@ public class ScreenshotView extends FrameLayout implements
        final PointF finalPos = new PointF(targetPosition.exactCenterX(),
                targetPosition.exactCenterY());

        // Shift to screen coordinates so that the animation runs on top of the entire screen,
        // including e.g. bars covering the display cutout.
        int[] locInScreen = mScreenshotPreview.getLocationOnScreen();
        startPos.offset(targetPosition.left - locInScreen[0], targetPosition.top - locInScreen[1]);

        if (DEBUG_ANIM) {
            Log.d(TAG, "toCorner: startPos=" + startPos);
            Log.d(TAG, "toCorner: finalPos=" + finalPos);