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

Commit 43ea3197 authored by Ale Nijamkin's avatar Ale Nijamkin
Browse files

[flexiglass] Fix type inference issue in SysUiViewModelTest

In SysUiViewModelTest, not explicitly specifying the expected type runs
into a limitation where the Kotlin compiler appears to be unable to correctly infer
the return type of the rememberViewModel factory. It thinks it's Unit instead of FakeSysUiViewModel.

This change explicitly declares the type of the view model variable
to work around this issue, allowing the test to compile and run
correctly.

Bug: 434169789
Bug: 432549544
Flag: com.android.systemui.scene_container
Test: ran SysUiViewModelTest which was failing on head before this change, verifying that it now passes.
Change-Id: I58fb143088434fe9fc72438a0b8a7026305851c5
parent 388f0cd6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment