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

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

Merge "[flexiglass] Fix type inference issue in SysUiViewModelTest" into main

parents d7024e4a 43ea3197
Loading
Loading
Loading
Loading
+11 −6
Original line number Diff line number Diff line
@@ -52,6 +52,11 @@ class SysUiViewModelTest : SysuiTestCase() {
        composeRule.setContent {
            val keepAlive by keepAliveMutable
            if (keepAlive) {
                // Need to explicitly state the type to avoid a weird issue where the factory seems
                // to
                // return Unit instead of FakeSysUiViewModel. It might be an issue with the compose
                // compiler.
                val unused: FakeSysUiViewModel =
                    rememberViewModel("test") {
                        FakeSysUiViewModel(
                            onActivation = { isActive = true },