diff options
author | 2025-03-24 10:36:30 -0700 | |
---|---|---|
committer | 2025-03-24 10:42:15 -0700 | |
commit | cfb76dce083e4062b4be7dcd72af30c7537aaa48 (patch) | |
tree | 443511e6622ead891db247c299c492ff36277dba | |
parent | 18147803360ee8b2ae93e99f50a5bbc459b6f316 (diff) |
[flexiglass] Removes Flexi ribbon from non-eng builds
Fix: 394920526
Test: not really tested, saw it on my eng build but didn't bother
testing on a non-eng build
Flag: com.android.systemui.scene_container
Change-Id: Ie38dabb001f3c3473d712a62e05617918b0846dc
-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, + ), + ) + } } } |