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

Commit 09acb7ca authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix issue #11256132: Add density bucket for all real numbers between 0 and ∞...

Well, how about 400.  400 is a real number.

Change-Id: I29ac61b7d629d582c7b68367365a7f81fcf679a2
parent db148b65
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -25779,6 +25779,7 @@ package android.util {
    method public boolean equals(android.util.DisplayMetrics);
    method public boolean equals(android.util.DisplayMetrics);
    method public void setTo(android.util.DisplayMetrics);
    method public void setTo(android.util.DisplayMetrics);
    method public void setToDefaults();
    method public void setToDefaults();
    field public static final int DENSITY_400 = 400; // 0x190
    field public static final int DENSITY_DEFAULT = 160; // 0xa0
    field public static final int DENSITY_DEFAULT = 160; // 0xa0
    field public static final int DENSITY_HIGH = 240; // 0xf0
    field public static final int DENSITY_HIGH = 240; // 0xf0
    field public static final int DENSITY_LOW = 120; // 0x78
    field public static final int DENSITY_LOW = 120; // 0x78
+8 −0
Original line number Original line Diff line number Diff line
@@ -66,6 +66,14 @@ public class DisplayMetrics {
     */
     */
    public static final int DENSITY_XHIGH = 320;
    public static final int DENSITY_XHIGH = 320;


    /**
     * Intermediate density for screens that sit somewhere between
     * {@link #DENSITY_XHIGH} (320dpi) and {@link #DENSITY_XXHIGH} (480 dpi).
     * This is not a density that applications should target, instead relying
     * on the system to scale their {@link #DENSITY_XXHIGH} assets for them.
     */
    public static final int DENSITY_400 = 400;

    /**
    /**
     * Standard quantized DPI for extra-extra-high-density screens.  Applications
     * Standard quantized DPI for extra-extra-high-density screens.  Applications
     * should not generally worry about this density; relying on XHIGH graphics
     * should not generally worry about this density; relying on XHIGH graphics