Loading core/java/android/util/DisplayMetrics.java +6 −2 Original line number Original line Diff line number Diff line Loading @@ -275,8 +275,12 @@ public class DisplayMetrics { */ */ public float density; public float density; /** /** * The screen density expressed as dots-per-inch. May be either * The screen density expressed as dots-per-inch. May be any one of the * {@link #DENSITY_LOW}, {@link #DENSITY_MEDIUM}, or {@link #DENSITY_HIGH}. * {@code DENSITY_} constants defined above. * * New constants are frequently added, and constants added on new Android * versions may be backported to previous Android versions, so applications * should not strongly rely on density matching one of the enum constants. */ */ public int densityDpi; public int densityDpi; /** /** Loading Loading
core/java/android/util/DisplayMetrics.java +6 −2 Original line number Original line Diff line number Diff line Loading @@ -275,8 +275,12 @@ public class DisplayMetrics { */ */ public float density; public float density; /** /** * The screen density expressed as dots-per-inch. May be either * The screen density expressed as dots-per-inch. May be any one of the * {@link #DENSITY_LOW}, {@link #DENSITY_MEDIUM}, or {@link #DENSITY_HIGH}. * {@code DENSITY_} constants defined above. * * New constants are frequently added, and constants added on new Android * versions may be backported to previous Android versions, so applications * should not strongly rely on density matching one of the enum constants. */ */ public int densityDpi; public int densityDpi; /** /** Loading