Skip to content

Commit 6c64208

Browse files
Romain GuyAndroid (Google) Code Review
authored andcommitted
Merge "Add programmatic access to setters in TextClock Bug #7478328" into jb-mr1-dev
2 parents 00b5ed8 + a9cfe67 commit 6c64208

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/java/android/widget/TextClock.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import android.provider.Settings;
3030
import android.text.format.DateFormat;
3131
import android.util.AttributeSet;
32+
import android.view.RemotableViewMethod;
3233

3334
import com.android.internal.R;
3435

@@ -266,6 +267,7 @@ public CharSequence getFormat12Hour() {
266267
*
267268
* @attr ref android.R.styleable#TextClock_format12Hour
268269
*/
270+
@RemotableViewMethod
269271
public void setFormat12Hour(CharSequence format) {
270272
mFormat12 = format;
271273

@@ -307,6 +309,7 @@ public CharSequence getFormat24Hour() {
307309
*
308310
* @attr ref android.R.styleable#TextClock_format24Hour
309311
*/
312+
@RemotableViewMethod
310313
public void setFormat24Hour(CharSequence format) {
311314
mFormat24 = format;
312315

@@ -366,6 +369,7 @@ public String getTimeZone() {
366369
*
367370
* @attr ref android.R.styleable#TextClock_timeZone
368371
*/
372+
@RemotableViewMethod
369373
public void setTimeZone(String timeZone) {
370374
mTimeZone = timeZone;
371375

0 commit comments

Comments
 (0)