diff options
author | Jeff Sharkey <jsharkey@android.com> | 2012-12-04 09:53:44 -0800 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2013-01-11 10:49:19 -0800 |
commit | 06c5f8a768bcd4f7b6441f7525bd5c639399fc76 (patch) | |
tree | 9a8efbbc6f0e4a8c711d9d4d6d24a8cd5369e28c /core/java/android/widget/TextClock.java | |
parent | ee49a3a007b9eb63bcb27eac492060b50ff75ce7 (diff) | |
download | frameworks_base-06c5f8a768bcd4f7b6441f7525bd5c639399fc76.zip frameworks_base-06c5f8a768bcd4f7b6441f7525bd5c639399fc76.tar.gz frameworks_base-06c5f8a768bcd4f7b6441f7525bd5c639399fc76.tar.bz2 |
Examine widget hierarchy to find clocks.
When switching to a widget, examine its hierarchy to determine if it
contains TextClocks that show hour and minute for the local timezone.
If so, hide the status bar clock. Doesn't fix closing walls.
Bug: 7667638
Change-Id: I1e2c40345c9e5eb0193efd70838c7ca9f779190b
Diffstat (limited to 'core/java/android/widget/TextClock.java')
-rw-r--r-- | core/java/android/widget/TextClock.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/widget/TextClock.java b/core/java/android/widget/TextClock.java index 290d9b5..5bf21c0 100644 --- a/core/java/android/widget/TextClock.java +++ b/core/java/android/widget/TextClock.java @@ -386,6 +386,16 @@ public class TextClock extends TextView { } /** + * Returns the current format string. Always valid after constructor has + * finished, and will never be {@code null}. + * + * @hide + */ + public CharSequence getFormat() { + return mFormat; + } + + /** * Selects either one of {@link #getFormat12Hour()} or {@link #getFormat24Hour()} * depending on whether the user has selected 24-hour format. * |