Merge "Make timezone changes apply to status bar time in 24hr mode. Bug: 2632681" into froyo

This commit is contained in:
Amith Yamasani
2010-04-28 15:18:15 -07:00
committed by Android (Google) Code Review

View File

@@ -361,6 +361,9 @@ public class StatusBarPolicy {
else if (action.equals(Intent.ACTION_TIMEZONE_CHANGED)) {
String tz = intent.getStringExtra("time-zone");
mCalendar = Calendar.getInstance(TimeZone.getTimeZone(tz));
if (mClockFormat != null) {
mClockFormat.setTimeZone(mCalendar.getTimeZone());
}
updateClock();
}
else if (action.equals(Intent.ACTION_ALARM_CHANGED)) {