summaryrefslogtreecommitdiff
path: root/core/java/android/widget/TextView.java
diff options
context:
space:
mode:
authorAurimas Liutikas <aurimas@google.com>2019-06-05 15:49:20 -0700
committerAurimas Liutikas <aurimas@google.com>2019-06-05 15:49:20 -0700
commit950445927912b3e1ee6e78e9e339cdfb14f02fb6 (patch)
tree22ce6a14624dbca1c0dbfc51e2a7ce12e22ebdac /core/java/android/widget/TextView.java
parent4fd5870662114abcb917791cca088bc6de7ae630 (diff)
Record textAppearance information for TextView.
Test: Added in CTS Bug: 133773670 Change-Id: I1d66a75ef7aca11f577fe54b7ef393565a64da79
Diffstat (limited to 'core/java/android/widget/TextView.java')
-rw-r--r--core/java/android/widget/TextView.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java
index a9e183ad5bf2..c37df011dbfe 100644
--- a/core/java/android/widget/TextView.java
+++ b/core/java/android/widget/TextView.java
@@ -1011,6 +1011,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
*/
TypedArray a = theme.obtainStyledAttributes(attrs,
com.android.internal.R.styleable.TextViewAppearance, defStyleAttr, defStyleRes);
+ saveAttributeDataForStyleable(context, com.android.internal.R.styleable.TextViewAppearance,
+ attrs, a, defStyleAttr, defStyleRes);
TypedArray appearance = null;
int ap = a.getResourceId(
com.android.internal.R.styleable.TextViewAppearance_textAppearance, -1);
@@ -1018,6 +1020,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
if (ap != -1) {
appearance = theme.obtainStyledAttributes(
ap, com.android.internal.R.styleable.TextAppearance);
+ saveAttributeDataForStyleable(context, com.android.internal.R.styleable.TextAppearance,
+ null, appearance, 0, ap);
}
if (appearance != null) {
readTextAppearance(context, appearance, attributes, false /* styleArray */);