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

Commit 81a63708 authored by Hongwei Wang's avatar Hongwei Wang Committed by Android (Google) Code Review
Browse files

Merge "Apply cutout offset when applicable" into main

parents e04ca157 27df26a7
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -453,8 +453,9 @@ public class SwipePipToHomeAnimator extends RectFSpringAnim {
            }
            // adjust the mSourceRectHint / mAppBounds by display cutout if applicable.
            if (mSourceRectHint != null && mDisplayCutoutInsets != null) {
                if (mFromRotation == Surface.ROTATION_0 && mDisplayCutoutInsets.top >= 0) {
                    // TODO: this is to special case the issues on Pixel Foldable device(s).
                if (mFromRotation == Surface.ROTATION_0) {
                    // TODO: this is to special case the issues on Foldable device
                    // with display cutout.
                    mSourceRectHint.offset(mDisplayCutoutInsets.left, mDisplayCutoutInsets.top);
                } else if (mFromRotation == Surface.ROTATION_90) {
                    mSourceRectHint.offset(mDisplayCutoutInsets.left, mDisplayCutoutInsets.top);