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

Commit 62d5cf49 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update clock on language change" into main

parents d301677b 8e24c886
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -347,6 +347,10 @@ constructor(
            override fun onUiModeChanged() {
                updateColors()
            }

            override fun onLocaleListChanged() {
                clock.onLocaleListChanged()
            }
        }

    private val nextAlarmCallback =
+7 −0
Original line number Diff line number Diff line
@@ -324,6 +324,13 @@ class ShadeHeaderControllerTest : SysuiTestCase() {
        verify(date).setTextAppearance(R.style.TextAppearance_QS_Status)
    }

    @Test
    fun updateLocale_clockUpdates() {
        configurationController.notifyLocaleChanged()

        verify(clock).onLocaleListChanged()
    }

    @Test
    fun animateOutOnStartCustomizing() {
        val animator = mock(ViewPropertyAnimator::class.java, Answers.RETURNS_SELF)
+4 −0
Original line number Diff line number Diff line
@@ -43,6 +43,10 @@ class FakeConfigurationController @Inject constructor() :
        listeners.forEach { it.onDensityOrFontScaleChanged() }
    }

    fun notifyLocaleChanged() {
        listeners.forEach { it.onLocaleListChanged() }
    }

    fun notifyConfigurationChanged() {
        onConfigurationChanged(newConfiguration = Configuration())
    }