Skip to content

Commit c54da1c

Browse files
author
Fabrice Di Meglio
committed
Add TextView textSize as a ViewDebug for hierarchyviewer
Change-Id: I6459d0d9cdb9fe6a81b3e30c56b64159fc729d52
1 parent a75fbc3 commit c54da1c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/java/android/widget/TextView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2148,6 +2148,7 @@ public void setTextAppearance(Context context, int resid) {
21482148
/**
21492149
* @return the size (in pixels) of the default text size in this TextView.
21502150
*/
2151+
@ViewDebug.ExportedProperty(category = "text")
21512152
public float getTextSize() {
21522153
return mTextPaint.getTextSize();
21532154
}

0 commit comments

Comments
 (0)