Merge "Skip moving PiP for IME/shelf change if user is dragging." into tm-qpr-dev

This commit is contained in:
Mateusz Cicheński
2022-11-02 17:36:37 +00:00
committed by Android (Google) Code Review

View File

@@ -427,7 +427,7 @@ public class PipTouchHandler {
// If this is from an IME or shelf adjustment, then we should move the PiP so that it is not
// occluded by the IME or shelf.
if (fromImeAdjustment || fromShelfAdjustment) {
if (mTouchState.isUserInteracting()) {
if (mTouchState.isUserInteracting() && mTouchState.isDragging()) {
// Defer the update of the current movement bounds until after the user finishes
// touching the screen
} else if (ENABLE_PIP_KEEP_CLEAR_ALGORITHM) {