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

Commit f55ad634 authored by Hawkwood's avatar Hawkwood
Browse files

Update TimeFormat when locale is changed

Bug: 431132779
Flag: NONE Minor bugfix change
Test: Manually checked timeformat is correct after locale change
Change-Id: I0087b4ff4b9b51dccde924ce1abb42cc6306b497
parent b8dc234f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -361,7 +361,10 @@ constructor(
    private val localeBroadcastReceiver =
        object : BroadcastReceiver() {
            override fun onReceive(context: Context, intent: Intent) {
                clock?.run { events.onLocaleChanged(Locale.getDefault()) }
                clock?.run {
                    events.onLocaleChanged(Locale.getDefault())
                    events.onTimeFormatChanged(getTimeFormatKind())
                }
            }
        }