Fix the pip bounds error when entering pip mode.

Ignore the motion event When the pip entry animation is waiting to be started

Bug: 269007413
Test: Manual test

Change-Id: I462f16b19689de52f567f15b90e1f71c0e87f4fc
Signed-off-by: buwenjing <buwenjing@xiaomi.com>
This commit is contained in:
buwenjing
2023-02-13 10:16:55 +08:00
parent 31b73ad4b9
commit 34f9dae2d3

View File

@@ -597,6 +597,13 @@ public class PipTouchHandler {
return true;
}
// Ignore the motion event When the entry animation is waiting to be started
if (!mTouchState.isUserInteracting() && mPipTaskOrganizer.isEntryScheduled()) {
ProtoLog.wtf(ShellProtoLogGroup.WM_SHELL_PICTURE_IN_PICTURE,
"%s: Waiting to start the entry animation, skip the motion event.", TAG);
return true;
}
// Update the touch state
mTouchState.onTouchEvent(ev);