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

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

Change-Id: Ia8148ff598218451c344d6a82793f47c6be8e536
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Mateusz Cicheński
2022-11-02 17:38:33 +00:00
committed by Automerger Merge Worker

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) {