diff options
| author | Aurimas Liutikas <aurimas@google.com> | 2019-06-07 16:01:31 -0700 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2019-06-07 16:01:31 -0700 |
| commit | 6fa3d16fda9f6dd141cf3c5e64cd4cf6d493ade2 (patch) | |
| tree | 9a8fbbd9ce2cc859cf1f1e222cef54471448e38b /core/java/android/widget/TextView.java | |
| parent | 17c51839951b7490880b0879215c06c519b65fec (diff) | |
| parent | c38e9716a879ec0d14238f734d98a6ac1b226207 (diff) | |
Merge "Record textAppearance information for TextView." into qt-dev am: e53837182c
am: c38e9716a8
Change-Id: I82607f8843f5f34a4f169efcb6cf0836738c6d53
Diffstat (limited to 'core/java/android/widget/TextView.java')
| -rw-r--r-- | core/java/android/widget/TextView.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index f02034a4d569..ac144b202bd5 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -1016,6 +1016,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); @@ -1023,6 +1025,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 */); |
