Merge "Make timezone changes apply to status bar time in 24hr mode. Bug: 2632681" into froyo
This commit is contained in:
committed by
Android (Google) Code Review
commit
6e4895b63a
@@ -361,6 +361,9 @@ public class StatusBarPolicy {
|
|||||||
else if (action.equals(Intent.ACTION_TIMEZONE_CHANGED)) {
|
else if (action.equals(Intent.ACTION_TIMEZONE_CHANGED)) {
|
||||||
String tz = intent.getStringExtra("time-zone");
|
String tz = intent.getStringExtra("time-zone");
|
||||||
mCalendar = Calendar.getInstance(TimeZone.getTimeZone(tz));
|
mCalendar = Calendar.getInstance(TimeZone.getTimeZone(tz));
|
||||||
|
if (mClockFormat != null) {
|
||||||
|
mClockFormat.setTimeZone(mCalendar.getTimeZone());
|
||||||
|
}
|
||||||
updateClock();
|
updateClock();
|
||||||
}
|
}
|
||||||
else if (action.equals(Intent.ACTION_ALARM_CHANGED)) {
|
else if (action.equals(Intent.ACTION_ALARM_CHANGED)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user