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

Commit ba22f5f6 authored by Fabián Kozynski's avatar Fabián Kozynski
Browse files

Prevent creating NPVC in other users

The BrightnessDialog could be created for a secondary user (separate bug
to address that). This would cause NPVC (as a
BrightnessMirrorShowingInteractor) to be created on a secondary user,
which leads to crashes.

Instead, prevent creation of the interactor when we don't need the
mirror (i.e. BrightnessDialog). Also, use a passthrough interactor if we
need it in other process (as we don't need NPVC animations).

Test: manual, no crashes in secondary user
Test: atest BrightnessSliderViewModelTest
Flag: com.android.systemui.qs_ui_refactor_compose_fragment
Fixes: 407920471
Change-Id: I4de84dd5ba495fab4d420e90ed62420281461dce
parent caf93858
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