Merge "Unhide getWeight of Typeface" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1b8333d1fb
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user