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

Commit da03d777 authored by Tracy Zhou's avatar Tracy Zhou Committed by android-build-merger
Browse files

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

am: 18603cdf

Change-Id: I489fcd7b889e3874b0ac6f43032ed0241b8545e2
parents 27b723d0 18603cdf
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);
    }