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

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

Merge "Fake configuration before collecting the changes" into main

parents 22cbadb8 0da99ca2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -95,10 +95,10 @@ class VolumePanelViewModelTest : SysuiTestCase() {
    @Test
    fun orientationChanges_panelOrientationChanges() =
        kosmos.runTest {
            val volumePanelState by collectLastValue(underTest.volumePanelState)
            testableResources.overrideConfiguration(
                Configuration().apply { orientation = Configuration.ORIENTATION_PORTRAIT }
            )
            val volumePanelState by collectLastValue(underTest.volumePanelState)
            assertThat(volumePanelState!!.orientation).isEqualTo(Configuration.ORIENTATION_PORTRAIT)

            fakeConfigurationController.onConfigurationChanged(