summaryrefslogtreecommitdiff
path: root/core/java/android/widget/TextClock.java
diff options
context:
space:
mode:
authorAurimas Liutikas <aurimas@google.com>2019-02-11 22:08:28 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-02-11 22:08:28 +0000
commitec0cfcbafb370d50420aafb7df6e9b81a6880f4f (patch)
tree0e71edc0be6f7b8196f09d7cc1da2326635479d3 /core/java/android/widget/TextClock.java
parent5d56e66495fc7651a4d1b7b78ad36808c784d013 (diff)
parentab324cfbe5b64a8a84d8c86210aecce5201b7814 (diff)
Merge "Update core widgets to save attribute source info."
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 106b90959ba0..616c4b51eca0 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);