Loading services/core/java/com/android/server/wm/AsyncRotationController.java +3 −1 Original line number Diff line number Diff line Loading @@ -653,7 +653,9 @@ class AsyncRotationController extends FadeAnimationController implements Consume // by drawing the rotated content before applying projection transaction of display. // And it will fade in after the display transition is finished. if (mTransitionOp == OP_APP_SWITCH && !mIsStartTransactionCommitted && canBeAsync(w.mToken) && !mDisplayContent.hasFixedRotationTransientLaunch()) { && canBeAsync(w.mToken) && !mDisplayContent.hasFixedRotationTransientLaunch() && !mService.mAtmService.mBackNavigationController.hasFixedRotationAnimation( mDisplayContent)) { hideImmediately(w.mToken, Operation.ACTION_FADE); if (DEBUG) Slog.d(TAG, "Hide on finishDrawing " + w.mToken.getTopChild()); } Loading services/core/java/com/android/server/wm/BackNavigationController.java +9 −0 Original line number Diff line number Diff line Loading @@ -622,6 +622,15 @@ class BackNavigationController { } } boolean hasFixedRotationAnimation(@NonNull DisplayContent displayContent) { if (!mAnimationHandler.mComposed) { return false; } final ActivityRecord openActivity = mAnimationHandler.mOpenActivities[0]; return displayContent == openActivity.mDisplayContent && displayContent.isFixedRotationLaunchingApp(openActivity); } private boolean isWaitBackTransition() { // Ignore mWaitTransition while flag is enabled. return mAnimationHandler.mComposed && (Flags.migratePredictiveBackTransition() Loading Loading
services/core/java/com/android/server/wm/AsyncRotationController.java +3 −1 Original line number Diff line number Diff line Loading @@ -653,7 +653,9 @@ class AsyncRotationController extends FadeAnimationController implements Consume // by drawing the rotated content before applying projection transaction of display. // And it will fade in after the display transition is finished. if (mTransitionOp == OP_APP_SWITCH && !mIsStartTransactionCommitted && canBeAsync(w.mToken) && !mDisplayContent.hasFixedRotationTransientLaunch()) { && canBeAsync(w.mToken) && !mDisplayContent.hasFixedRotationTransientLaunch() && !mService.mAtmService.mBackNavigationController.hasFixedRotationAnimation( mDisplayContent)) { hideImmediately(w.mToken, Operation.ACTION_FADE); if (DEBUG) Slog.d(TAG, "Hide on finishDrawing " + w.mToken.getTopChild()); } Loading
services/core/java/com/android/server/wm/BackNavigationController.java +9 −0 Original line number Diff line number Diff line Loading @@ -622,6 +622,15 @@ class BackNavigationController { } } boolean hasFixedRotationAnimation(@NonNull DisplayContent displayContent) { if (!mAnimationHandler.mComposed) { return false; } final ActivityRecord openActivity = mAnimationHandler.mOpenActivities[0]; return displayContent == openActivity.mDisplayContent && displayContent.isFixedRotationLaunchingApp(openActivity); } private boolean isWaitBackTransition() { // Ignore mWaitTransition while flag is enabled. return mAnimationHandler.mComposed && (Flags.migratePredictiveBackTransition() Loading