Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4938fd6 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

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

The SimpleDateFormat was being cached and new timezone not being applied. Make sure
to apply the new timezone to the format object as soon as it changes.

Change-Id: I72abfef2e14cf5db5a6e8cb71b053380b695495c
parent 19681af4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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)) {