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

Commit c7ddd492 authored by Riddle Hsu's avatar Riddle Hsu Committed by Automerger Merge Worker
Browse files

Merge "Don't apply UI width limitation to an external display" into main am: 31331ed8

parents 419b5bf7 31331ed8
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -5206,7 +5206,11 @@ public class WindowManagerService extends IWindowManager.Stub
    public void displayReady() {
        synchronized (mGlobalLock) {
            if (mMaxUiWidth > 0) {
                mRoot.forAllDisplays(displayContent -> displayContent.setMaxUiWidth(mMaxUiWidth));
                mRoot.forAllDisplays(dc -> {
                    if (dc.mDisplay.getType() == Display.TYPE_INTERNAL) {
                        dc.setMaxUiWidth(mMaxUiWidth);
                    }
                });
            }
            applyForcedPropertiesForDefaultDisplay();
            mAnimator.ready();