summaryrefslogtreecommitdiff
path: root/core/java/android/widget/TextClock.java
diff options
context:
space:
mode:
authorAurimas Liutikas <aurimas@google.com>2019-02-07 16:46:38 -0800
committerAurimas Liutikas <aurimas@google.com>2019-02-07 16:46:38 -0800
commitab324cfbe5b64a8a84d8c86210aecce5201b7814 (patch)
tree5f3cbd8c8844095bf83b88a01b27e202f8cce95f /core/java/android/widget/TextClock.java
parentf6f2e32b4edbc80b608b0bee148c56709c505615 (diff)
Update core widgets to save attribute source info.
Bug: 111439551 Test: make -j Change-Id: I72997a87122f38b32e38e42a690385acc7d0e521
Diffstat (limited to 'core/java/android/widget/TextClock.java')
-rw-r--r--core/java/android/widget/TextClock.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/widget/TextClock.java b/core/java/android/widget/TextClock.java
index 7f462cb3289b..a3a92d3ad265 100644
--- a/core/java/android/widget/TextClock.java
+++ b/core/java/android/widget/TextClock.java
@@ -242,6 +242,8 @@ public class TextClock extends TextView {
final TypedArray a = context.obtainStyledAttributes(
attrs, R.styleable.TextClock, defStyleAttr, defStyleRes);
+ saveAttributeDataForStyleable(context, R.styleable.TextClock,
+ attrs, a, defStyleAttr, defStyleRes);
try {
mFormat12 = a.getText(R.styleable.TextClock_format12Hour);
mFormat24 = a.getText(R.styleable.TextClock_format24Hour);