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

Commit 44a726f5 authored by Ikram Gabiyev's avatar Ikram Gabiyev Committed by Android (Google) Code Review
Browse files

Merge "Need config resolution before getting dispAreaInfo" into main

parents 1b25bd8e 1df82b36
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1647,7 +1647,13 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
                // Update new size for the rotated activities, if any.
                applyFixedRotationForNonTopVisibleActivityIfNeeded();
            }
            sendNewConfiguration();
            if (!sendNewConfiguration()) {
                // If config resolution didn't take place and the new config wasn't sent, at least,
                // make sure that full config is resolved; this is important cause display change
                // signals sent to Shell could rely on the new config for the latest updates.
                updateDisplayOverrideConfigurationLocked(mTmpConfiguration,
                        null /* starting */, true /* deferResume */);
            }
        }

        mWmService.mWindowPlacerLocked.performSurfacePlacement();