From 684ee34fe77d7ae476e22190182c72fca898fae5 Mon Sep 17 00:00:00 2001 From: Riddle Hsu Date: Mon, 3 Jun 2024 10:59:57 +0800 Subject: [PATCH] Send source rect hint to Shell via stopSwipePipToHome Launcher has calculated it, so shell side can use it directly to avoid inconsistency. Bug: 331315278 Test: Assume the target app support auto-pip and it doesn't draw under display cutout. E.g. LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES Enter PiP from 90 degrees to home with 0 degrees. The left side of pip should not flicker. Change-Id: Id09efc8a30eeef14a031d9db2ab1e00b6f3034bc --- quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java | 3 ++- quickstep/src/com/android/quickstep/SystemUiProxy.java | 4 ++-- .../com/android/quickstep/util/SwipePipToHomeAnimator.java | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java index 463222dfd0..3199076547 100644 --- a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java +++ b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java @@ -1614,7 +1614,8 @@ public abstract class AbsSwipeUpHandler