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

Commit 0539341c authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[flexiglass] Ribbon is always on in Flexi." into main

parents 6299d54a 8c3df00e
Loading
Loading
Loading
Loading
+9 −13
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@

package com.android.systemui.scene.ui.composable

import android.os.SystemProperties
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Text
@@ -84,7 +83,6 @@ fun SceneContainer(
    val currentDestinations: Map<UserAction, SceneModel> by
        currentScene.destinationScenes.collectAsState()
    val state = remember { SceneTransitionLayoutState(currentSceneKey.toTransitionSceneKey()) }
    val isRibbonEnabled = remember { SystemProperties.getBoolean("flexi.ribbon", false) }

    DisposableEffect(viewModel, state) {
        viewModel.setTransitionState(state.observableTransitionState().map { it.toModel() })
@@ -137,7 +135,6 @@ fun SceneContainer(
            }
        }

        if (isRibbonEnabled) {
        BottomRightCornerRibbon(
            content = {
                Text(
@@ -149,7 +146,6 @@ fun SceneContainer(
        )
    }
}
}

// TODO(b/293899074): remove this once we can use the one from SceneTransitionLayout.
private fun SceneTransitionObservableTransitionState.toModel(): ObservableTransitionState {