Merge "Unhide getWeight of Typeface" into pi-dev

This commit is contained in:
TreeHugger Robot
2018-03-13 22:24:41 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 4 deletions

View File

@@ -14436,6 +14436,7 @@ package android.graphics {
method public static android.graphics.Typeface createFromFile(java.lang.String);
method public static android.graphics.Typeface defaultFromStyle(int);
method public int getStyle();
method public int getWeight();
method public final boolean isBold();
method public final boolean isItalic();
field public static final int BOLD = 1; // 0x1

View File

@@ -167,10 +167,8 @@ public class Typeface {
nativeSetDefault(t.native_instance);
}
// TODO: Make this public API. (b/64852739)
/** @hide */
@VisibleForTesting
public int getWeight() {
/** Returns the typeface's weight value */
public @IntRange(from = 0, to = 1000) int getWeight() {
return mWeight;
}