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

Commit 83670bf2 authored by Michael Bestas's avatar Michael Bestas Committed by Gerrit Code Review
Browse files

Hide public API modifications

Change-Id: I8362b22d589060ebef77f67721a728f4a64d8fdc
parent 5e51025b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -124,6 +124,7 @@ public class DisplayMetrics {
    @Deprecated
    public static int DENSITY_DEVICE;

    /** @hide */
    public static int DENSITY_CURRENT;

    static {
@@ -221,6 +222,7 @@ public class DisplayMetrics {
     */
    public float noncompatYdpi;

    /** @hide */
    public void updateDensity() {
        density = DENSITY_CURRENT / (float) DENSITY_DEFAULT;
        densityDpi = DENSITY_CURRENT;
@@ -326,6 +328,7 @@ public class DisplayMetrics {
            ", xdpi=" + xdpi + ", ydpi=" + ydpi + "}";
    }

    /** @hide */
    public static int getDeviceDensity() {
        return DENSITY_CURRENT;
    }