Loading packages/SystemUI/tests/src/com/android/systemui/lifecycle/SysUiViewModelTest.kt +11 −6 Original line number Diff line number Diff line Loading @@ -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 }, Loading Loading
packages/SystemUI/tests/src/com/android/systemui/lifecycle/SysUiViewModelTest.kt +11 −6 Original line number Diff line number Diff line Loading @@ -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 }, Loading