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

Commit 6f6179d5 authored by Roman Birg's avatar Roman Birg Committed by Ricardo Cerqueira
Browse files

return default density only for primary display



Change-Id: I70b35a7f4ba77d7c5744fdcb6c19ef78de3dcb15
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
(cherry picked from commit 49d68f9f)
parent 585cbe97
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -677,9 +677,11 @@ public final class Display {
        synchronized (this) {
            updateDisplayInfoLocked();
            mDisplayInfo.getAppMetrics(outMetrics, mDisplayAdjustments);
            if (getDisplayId() == DEFAULT_DISPLAY) {
                outMetrics.densityDpi = DisplayMetrics.DENSITY_DEVICE_DEFAULT;
            }
        }
    }

    /**
     * Gets the real size of the display without subtracting any window decor or