Merge "Ensure PiP window visible after fold/unfold device" into tm-qpr-dev
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