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

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

[flexiglass] Fix NotificationShelfTest with SceneContainerFlag

When SceneContainerFlag is enabled, NotificationShelf.isAlignedToEnd()
now relies on the internal mAlignedToEnd field (set via
setAlignedToEnd()) instead of primarily using
mAmbientState.getUseSplitShade().

This cl updates the prepareShelfSpy helper in the test to also call
shelfSpy.setAlignedToEnd() to ensure the shelf's alignment state is
correctly configured when SceneContainerFlag is enabled.

Bug: 416716454
Flag: com.android.systemui.scene_container
Test: com.android.systemui.statusbar.notification.stack.NotificationShelfTest
     Locally run this test and verify all the tests are passed with the
     `@EnableSceneContainer` annotation.
Change-Id: Ib3a41fd4aff7414270082eecf7ff035aca6e0b93
parent c246888e
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