From a9cfe677eec0324a94509c6a5d29cec5b8a7a7cf Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Mon, 5 Nov 2012 14:16:32 -0800 Subject: [PATCH] Add programmatic access to setters in TextClock Bug #7478328 Add missing annotation to let appwidgets change values programmatically Change-Id: I6e9b095e93e4e90bd96e127344354c0dfa46cd86 --- core/java/android/widget/TextClock.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/java/android/widget/TextClock.java b/core/java/android/widget/TextClock.java index 4c466581b80aa..908eb0a8fe518 100644 --- a/core/java/android/widget/TextClock.java +++ b/core/java/android/widget/TextClock.java @@ -29,6 +29,7 @@ import android.os.SystemClock; import android.provider.Settings; import android.text.format.DateFormat; import android.util.AttributeSet; +import android.view.RemotableViewMethod; import com.android.internal.R; @@ -266,6 +267,7 @@ public class TextClock extends TextView { * * @attr ref android.R.styleable#TextClock_format12Hour */ + @RemotableViewMethod public void setFormat12Hour(CharSequence format) { mFormat12 = format; @@ -307,6 +309,7 @@ public class TextClock extends TextView { * * @attr ref android.R.styleable#TextClock_format24Hour */ + @RemotableViewMethod public void setFormat24Hour(CharSequence format) { mFormat24 = format; @@ -366,6 +369,7 @@ public class TextClock extends TextView { * * @attr ref android.R.styleable#TextClock_timeZone */ + @RemotableViewMethod public void setTimeZone(String timeZone) { mTimeZone = timeZone;