* commit '6c642089bcd13bf17d7c445b2ec89b62a79c9823': Add programmatic access to setters in TextClock Bug #7478328
This commit is contained in:
@@ -29,6 +29,7 @@ import android.os.SystemClock;
|
|||||||
import android.provider.Settings;
|
import android.provider.Settings;
|
||||||
import android.text.format.DateFormat;
|
import android.text.format.DateFormat;
|
||||||
import android.util.AttributeSet;
|
import android.util.AttributeSet;
|
||||||
|
import android.view.RemotableViewMethod;
|
||||||
|
|
||||||
import com.android.internal.R;
|
import com.android.internal.R;
|
||||||
|
|
||||||
@@ -266,6 +267,7 @@ public class TextClock extends TextView {
|
|||||||
*
|
*
|
||||||
* @attr ref android.R.styleable#TextClock_format12Hour
|
* @attr ref android.R.styleable#TextClock_format12Hour
|
||||||
*/
|
*/
|
||||||
|
@RemotableViewMethod
|
||||||
public void setFormat12Hour(CharSequence format) {
|
public void setFormat12Hour(CharSequence format) {
|
||||||
mFormat12 = format;
|
mFormat12 = format;
|
||||||
|
|
||||||
@@ -307,6 +309,7 @@ public class TextClock extends TextView {
|
|||||||
*
|
*
|
||||||
* @attr ref android.R.styleable#TextClock_format24Hour
|
* @attr ref android.R.styleable#TextClock_format24Hour
|
||||||
*/
|
*/
|
||||||
|
@RemotableViewMethod
|
||||||
public void setFormat24Hour(CharSequence format) {
|
public void setFormat24Hour(CharSequence format) {
|
||||||
mFormat24 = format;
|
mFormat24 = format;
|
||||||
|
|
||||||
@@ -366,6 +369,7 @@ public class TextClock extends TextView {
|
|||||||
*
|
*
|
||||||
* @attr ref android.R.styleable#TextClock_timeZone
|
* @attr ref android.R.styleable#TextClock_timeZone
|
||||||
*/
|
*/
|
||||||
|
@RemotableViewMethod
|
||||||
public void setTimeZone(String timeZone) {
|
public void setTimeZone(String timeZone) {
|
||||||
mTimeZone = timeZone;
|
mTimeZone = timeZone;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user