diff options
Diffstat (limited to 'core/java/android/widget/TextClock.java')
| -rw-r--r-- | core/java/android/widget/TextClock.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/widget/TextClock.java b/core/java/android/widget/TextClock.java index 53318c99ac34..d8a9ccad3f2e 100644 --- a/core/java/android/widget/TextClock.java +++ b/core/java/android/widget/TextClock.java @@ -408,6 +408,15 @@ public class TextClock extends TextView { } /** + * Update the displayed time if necessary and invalidate the view. + * @hide + */ + public void refresh() { + onTimeChanged(); + invalidate(); + } + + /** * Indicates whether the system is currently using the 24-hour mode. * * When the system is in 24-hour mode, this view will use the pattern |
