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

Commit 3465b807 authored by Jiaming Cheng's avatar Jiaming Cheng
Browse files

[flexiglass] Fix QuickQSPanelControllerTest failures with SceneContainerFlag

Updated the `setUp` method in QuickQSPanelControllerTest to
conditionally mock dependencies
(`mediaCarouselInteractor.hasActiveMedia`,
`quickQSPanel.viewTreeObserver`, `mockViewTreeObserver.isAlive`,
`quickQSPanel.isAttachedToWindow`) only when SceneContainerFlag
is enabled. This resolves the initialization crashes.

Added `@DisableSceneContainer` annotation to the
`mediaExpansion_...` tests to ensure they only run when the
flag is disabled, as they test legacy behavior.

Bug: 416716468
Flag: com.android.systemui.scene_container
Test: com.android.systemui.qs.QuickQSPanelControllerTest
     Locally run this test and verify all the tests are passed with the
     `@EnableSceneContainer` annotation.
Change-Id: I8bb191b327338438bc1e3f6838181350e350d07a
parent 2a9efb6d
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