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

Commit 4fe7b345 authored by Darrell Shi's avatar Darrell Shi Committed by Android (Google) Code Review
Browse files

Merge "Add a background to UMO in Glanceable Hub" into main

parents d0b57f79 5176a479
Loading
Loading
Loading
Loading
+24 −17
Original line number Diff line number Diff line
@@ -112,6 +112,7 @@ import androidx.compose.runtime.setValue
import androidx.compose.runtime.snapshotFlow
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.draw.drawBehind
import androidx.compose.ui.focus.FocusRequester
import androidx.compose.ui.focus.focusRequester
@@ -1708,7 +1709,13 @@ private fun Umo(
private fun UmoLegacy(viewModel: BaseCommunalViewModel, modifier: Modifier = Modifier) {
    AndroidView(
        modifier =
            modifier.pointerInput(Unit) {
            modifier
                .clip(
                    shape =
                        RoundedCornerShape(dimensionResource(system_app_widget_background_radius))
                )
                .background(MaterialTheme.colorScheme.primary)
                .pointerInput(Unit) {
                    detectHorizontalDragGestures { change, _ ->
                        change.consume()
                        val upTime = SystemClock.uptimeMillis()