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

Commit fe4ef545 authored by Marin Shalamanov's avatar Marin Shalamanov
Browse files

Don't change density when forcing screen size

Test: m services
Bug: 159333536
Bug: 156100799
Change-Id: Ib4038f506cdddc88bc86cebbd1fa7992480e66bd
parent 7b91784c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2485,7 +2485,7 @@ class DisplayContent extends DisplayArea.Root implements WindowManagerPolicy.Dis
        }
        }


        Slog.i(TAG_WM, "Using new display size: " + width + "x" + height);
        Slog.i(TAG_WM, "Using new display size: " + width + "x" + height);
        updateBaseDisplayMetrics(width, height, width * mBaseDisplayDensity / mBaseDisplayWidth);
        updateBaseDisplayMetrics(width, height, mBaseDisplayDensity);
        reconfigureDisplayLocked();
        reconfigureDisplayLocked();


        if (!mIsSizeForced) {
        if (!mIsSizeForced) {