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

Commit f653f543 authored by Jiaming Cheng's avatar Jiaming Cheng
Browse files

[flexiglass] Fix ModesTileDataInteractorTest with SceneContainerFlag

The method used to simulate the shade closing,
`shadeTestUtil.setLegacyExpandedOrAwaitingInputTransfer(false)`,
is not fully effective when the sceneContainerFlag is enabled.
The logic in ModesTileDataInteractor.setQuickModeOverride
for resetting the quickMode depends on the
shadeInteractor.isAnyExpanded flow becoming false when the
shade is closed (or the device is on the keyguard). The
isAnyExpanded flow is derived from both legacyShadeExpansion
and legacyPanelExpansion. The
setLegacyExpandedOrAwaitingInputTransfer method only updates
legacyShadeExpansion.

Also, this cl made ModesTileDataInteractorTest
to a parameterized test with SceneContainerFlag.

Bug: 419896672
Flag: com.android.systemui.scene_container
Test: com.android.systemui.qs.tiles.impl.modes.domain.interactor.ModesTileDataInteractorTest
Change-Id: I01d040df765ef2ec9f4b339626da4f64873dfcb3
parent b243750b
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