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

Commit 2b0b733f authored by Roman Birg's avatar Roman Birg
Browse files

Density scaling: return device's default density



When an application requests the Display's display metrics, always
override the returned densityDpi to be the device's original density to
ensure compatibility.

Change-Id: I465d53bc189d4596aba0269f124ddc9d0d8097da
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 29b82740
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -677,6 +677,7 @@ public final class Display {
        synchronized (this) {
            updateDisplayInfoLocked();
            mDisplayInfo.getAppMetrics(outMetrics, mDisplayAdjustments);
            outMetrics.densityDpi = DisplayMetrics.DENSITY_DEVICE_DEFAULT;
        }
    }