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

Commit 652fc4bd authored by Casey Burkhardt's avatar Casey Burkhardt
Browse files

Update Clock contentDescription on time zone change

Ensures that whenever a time zone change is broadcast, the SimpleDateFormat used for populating the view's contentDescription is also adjusted to reflect the new timezone.

Bug: 396040543
Test: Manually confirmed fix with TalkBack
Flag: EXEMPT bug fix
Change-Id: I37e7d8d2800b7581036f442ce066f4ab89a6c9cb
parent 546ca204
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -256,6 +256,9 @@ public class Clock extends TextView implements
                    if (mClockFormat != null) {
                        mClockFormat.setTimeZone(mCalendar.getTimeZone());
                    }
                    if (mContentDescriptionFormat != null) {
                        mContentDescriptionFormat.setTimeZone(mCalendar.getTimeZone());
                    }
                });
            } else if (action.equals(Intent.ACTION_CONFIGURATION_CHANGED)) {
                final Locale newLocale = getResources().getConfiguration().locale;