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

Commit 18603cdf authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix PIP window going offset in landscape mode." into pi-dev

parents 60a24b97 4b696821
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -325,6 +325,9 @@ public class PipTouchHandler {
            return;
        }
        bounds.offset(0, toAdjustedBounds.bottom - bounds.top);
        // In landscape mode, PIP window can go offset while launching IME. We want to align the
        // the top of the PIP window with the top of the movement bounds in that case.
        bounds.offset(0, Math.max(0, mMovementBounds.top - bounds.top));
        mMotionHelper.animateToOffset(bounds);
    }