diff options
author | 2025-03-24 13:32:50 -0700 | |
---|---|---|
committer | 2025-03-24 13:32:50 -0700 | |
commit | 658706cd371d5f48257aa2140d95eedc804d3c60 (patch) | |
tree | a750aa1a8de5fec3645e5940df120bdbcca966f2 | |
parent | 0451937e15da6c2eab802fedeca6e494c02a7815 (diff) | |
parent | cfb76dce083e4062b4be7dcd72af30c7537aaa48 (diff) |
Merge "[flexiglass] Removes Flexi ribbon from non-eng builds" into main
-rw-r--r-- | packages/SystemUI/compose/features/src/com/android/systemui/scene/ui/composable/SceneContainer.kt | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/packages/SystemUI/compose/features/src/com/android/systemui/scene/ui/composable/SceneContainer.kt b/packages/SystemUI/compose/features/src/com/android/systemui/scene/ui/composable/SceneContainer.kt index 0daef465bf1f..f75272b8e680 100644 --- a/packages/SystemUI/compose/features/src/com/android/systemui/scene/ui/composable/SceneContainer.kt +++ b/packages/SystemUI/compose/features/src/com/android/systemui/scene/ui/composable/SceneContainer.kt @@ -16,6 +16,7 @@ package com.android.systemui.scene.ui.composable +import android.os.Build import androidx.compose.foundation.LocalOverscrollFactory import androidx.compose.foundation.gestures.awaitEachGesture import androidx.compose.foundation.gestures.awaitFirstDown @@ -250,15 +251,17 @@ fun SceneContainer( } } - BottomRightCornerRibbon( - content = { Text(text = "flexi\uD83E\uDD43", color = Color.White) }, - colorSaturation = { viewModel.ribbonColorSaturation }, - modifier = - Modifier.align(Alignment.BottomEnd) - .burnInAware( - viewModel = viewModel.burnIn, - params = rememberBurnIn(viewModel.clock).parameters, - ), - ) + if (Build.IS_ENG) { + BottomRightCornerRibbon( + content = { Text(text = "flexi\uD83E\uDD43", color = Color.White) }, + colorSaturation = { viewModel.ribbonColorSaturation }, + modifier = + Modifier.align(Alignment.BottomEnd) + .burnInAware( + viewModel = viewModel.burnIn, + params = rememberBurnIn(viewModel.clock).parameters, + ), + ) + } } } |