Loading packages/SystemUI/src/com/android/systemui/statusbar/chips/ui/compose/OngoingActivityChip.kt +6 −1 Original line number Diff line number Diff line Loading @@ -202,11 +202,16 @@ private fun ChipBody( } model.decorativeIcon?.let { val context = LocalContext.current Icon( icon = it.icon, tint = Color(it.colors.text(context)), modifier = modifier .background(color = it.backgroundColor, shape = it.backgroundShape) .background( color = Color(it.colors.background(context).defaultColor), shape = it.backgroundShape, ) .padding(vertical = 2.dp, horizontal = 8.dp) .size(12.dp), ) Loading packages/SystemUI/src/com/android/systemui/statusbar/chips/ui/model/OngoingActivityChipModel.kt +1 −6 Original line number Diff line number Diff line Loading @@ -22,7 +22,6 @@ import android.annotation.StringRes import android.os.SystemClock import android.view.View import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.Shape import com.android.internal.logging.InstanceId import com.android.systemui.animation.ComposableControllerFactory Loading Loading @@ -288,9 +287,5 @@ sealed class OngoingActivityChipModel { ) /** Represents a decorative icon to show on the right side of the chip. */ data class DecorativeIcon( val icon: Icon, val backgroundColor: Color, val backgroundShape: Shape, ) data class DecorativeIcon(val icon: Icon, val backgroundShape: Shape, val colors: ColorsModel) } Loading
packages/SystemUI/src/com/android/systemui/statusbar/chips/ui/compose/OngoingActivityChip.kt +6 −1 Original line number Diff line number Diff line Loading @@ -202,11 +202,16 @@ private fun ChipBody( } model.decorativeIcon?.let { val context = LocalContext.current Icon( icon = it.icon, tint = Color(it.colors.text(context)), modifier = modifier .background(color = it.backgroundColor, shape = it.backgroundShape) .background( color = Color(it.colors.background(context).defaultColor), shape = it.backgroundShape, ) .padding(vertical = 2.dp, horizontal = 8.dp) .size(12.dp), ) Loading
packages/SystemUI/src/com/android/systemui/statusbar/chips/ui/model/OngoingActivityChipModel.kt +1 −6 Original line number Diff line number Diff line Loading @@ -22,7 +22,6 @@ import android.annotation.StringRes import android.os.SystemClock import android.view.View import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.Shape import com.android.internal.logging.InstanceId import com.android.systemui.animation.ComposableControllerFactory Loading Loading @@ -288,9 +287,5 @@ sealed class OngoingActivityChipModel { ) /** Represents a decorative icon to show on the right side of the chip. */ data class DecorativeIcon( val icon: Icon, val backgroundColor: Color, val backgroundShape: Shape, ) data class DecorativeIcon(val icon: Icon, val backgroundShape: Shape, val colors: ColorsModel) }