Merge "Ensure PiP window visible after fold/unfold device" into tm-qpr-dev am: 1a51c35170
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19572042 Change-Id: I220cd4306a97e2d49be6f39a56d7f26a47416a2b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -636,7 +636,8 @@ public class PipController implements PipTransitionController.PipTransitionCallb
|
||||
mPipTaskOrganizer.scheduleAnimateResizePip(
|
||||
postChangeBounds, duration, null /* updateBoundsCallback */);
|
||||
} else {
|
||||
mTouchHandler.getMotionHelper().movePip(postChangeBounds);
|
||||
// Directly move PiP to its final destination bounds without animation.
|
||||
mPipTaskOrganizer.scheduleFinishResizePip(postChangeBounds);
|
||||
}
|
||||
} else {
|
||||
updateDisplayLayout.run();
|
||||
|
||||
@@ -234,7 +234,7 @@ public class PipControllerTest extends ShellTestCase {
|
||||
mPipController.mDisplaysChangedListener.onDisplayConfigurationChanged(
|
||||
displayId, new Configuration());
|
||||
|
||||
verify(mMockPipMotionHelper).movePip(any(Rect.class));
|
||||
verify(mMockPipTaskOrganizer).scheduleFinishResizePip(any(Rect.class));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -250,7 +250,7 @@ public class PipControllerTest extends ShellTestCase {
|
||||
mPipController.mDisplaysChangedListener.onDisplayConfigurationChanged(
|
||||
displayId, new Configuration());
|
||||
|
||||
verify(mMockPipMotionHelper, never()).movePip(any(Rect.class));
|
||||
verify(mMockPipTaskOrganizer, never()).scheduleFinishResizePip(any(Rect.class));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user