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

Commit 7f22aa27 authored by burakov's avatar burakov Committed by Danny Burakov
Browse files

[bc25] Add comments to prevent error-prone use of `ShadeMode`.

Flag: com.android.systemui.dual_shade
Flag: com.android.systemui.scene_container
Bug: 338033836
Test: N/A, this is only a documentation change.
Change-Id: I004190355a88c166ecd171eea259652922f8e725
parent 64d09c0b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -55,7 +55,11 @@ interface ShadeInteractor : BaseShadeInteractor {
    /** Whether the shade can be expanded from QQS to QS. */
    val isExpandToQsEnabled: Flow<Boolean>

    /** The version of the shade layout to use. */
    /**
     * The version of the shade layout to use.
     *
     * Note: Most likely, you want to read [isShadeLayoutWide] instead of this.
     */
    val shadeMode: StateFlow<ShadeMode>

    /**
+2 −0
Original line number Diff line number Diff line
@@ -29,6 +29,8 @@ sealed interface ShadeMode {
    /**
     * The split shade where, on large screens and unfolded foldables, the QS and notification parts
     * are placed side-by-side and expand/collapse as a single panel.
     *
     * Note: This isn't the only mode where the shade is wide.
     */
    data object Split : ShadeMode