Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9db2f240 authored by Wei Sheng Shih's avatar Wei Sheng Shih Committed by Android (Google) Code Review
Browse files

Merge "Fix windowless snapshot surface drawing with mismatch configuration." into main

parents d31c2d0b b0a42d9c
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -1335,12 +1335,16 @@ class BackNavigationController {
                }
                // If there is only one adaptor, attach the windowless window to top activity,
                // because fixed rotation only applies on activity.
                // Note that embedded activity won't use fixed rotation.
                final Configuration openConfig = mAdaptors.length == 1
                // Note that embedded activity won't use fixed rotation. Also, there is only one
                // animation target for closing task.
                final boolean chooseActivity = mAdaptors.length == 1
                        && (switchType == ACTIVITY_SWITCH || mainActivity.mDisplayContent
                                .isFixedRotationLaunchingApp(mainActivity));
                final Configuration openConfig = chooseActivity
                        ? mainActivity.getConfiguration() : openTask.getConfiguration();
                mRequestedStartingSurfaceId = openTask.mAtmService.mTaskOrganizerController
                        .addWindowlessStartingSurface(openTask, mainActivity,
                                mAdaptors.length == 1 ? mainActivity.getSurfaceControl()
                                chooseActivity ? mainActivity.getSurfaceControl()
                                        : mRemoteAnimationTarget.leash, snapshot, openConfig,
                            new IWindowlessStartingSurfaceCallback.Stub() {
                            // Once the starting surface has been created in shell, it will call