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

Commit 29821992 authored by Craig Mautner's avatar Craig Mautner Committed by Android (Google) Code Review
Browse files

Merge "Update configuration before setting override size."

parents 876d100f 67a60426
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -6950,11 +6950,19 @@ public class WindowManagerService extends IWindowManager.Stub
        synchronized(mWindowMap) {
            final DisplayContent displayContent = getDefaultDisplayContentLocked();
            readForcedDisplaySizeAndDensityLocked(displayContent);

            mDisplayReady = true;
        }

        try {
            mActivityManager.updateConfiguration(null);
        } catch (RemoteException e) {
        }

        synchronized(mWindowMap) {
            mIsTouchDevice = mContext.getPackageManager().hasSystemFeature(
                    PackageManager.FEATURE_TOUCHSCREEN);

            final DisplayContent displayContent = getDefaultDisplayContentLocked();
            mPolicy.setInitialDisplaySize(displayContent.getDisplay(),
                    displayContent.mInitialDisplayWidth,
                    displayContent.mInitialDisplayHeight,