Merge "Fix snapshot starting window isn't apply fixed-rotation with IME visible" into tm-dev

This commit is contained in:
Ming-Shin Lu
2022-05-30 12:24:51 +00:00
committed by Android (Google) Code Review

View File

@@ -159,9 +159,7 @@ public class StartingSurfaceController {
return null; return null;
} }
if (topFullscreenActivity.getWindowConfiguration().getRotation() if (topFullscreenActivity.getWindowConfiguration().getRotation()
!= taskSnapshot.getRotation() != taskSnapshot.getRotation()) {
// Use normal rotation to avoid flickering of IME window in old orientation.
&& !taskSnapshot.hasImeSurface()) {
// The snapshot should have been checked by ActivityRecord#isSnapshotCompatible // The snapshot should have been checked by ActivityRecord#isSnapshotCompatible
// that the activity will be updated to the same rotation as the snapshot. Since // that the activity will be updated to the same rotation as the snapshot. Since
// the transition is not started yet, fixed rotation transform needs to be applied // the transition is not started yet, fixed rotation transform needs to be applied