Loading packages/SystemUI/src/com/android/systemui/statusbar/chips/ui/model/ColorsModel.kt +3 −2 Original line number Diff line number Diff line Loading @@ -46,8 +46,9 @@ sealed interface ColorsModel { } /** The chip should match the system theme main color. */ // TODO(b/347717946): The chip's color isn't getting updated when the user switches theme, it // only gets updated when a different configuration change happens, like a rotation. // Note: When StatusBarChipsModernization is disabled, the chip's color doesn't get // updated when the user switches theme. It only gets updated when a different // configuration change happens, like a rotation. data object SystemThemed : ColorsModel { override fun background(context: Context): ColorStateList = ColorStateList.valueOf( Loading packages/SystemUI/src/com/android/systemui/statusbar/chips/ui/model/OngoingActivityChipModel.kt +0 −1 Original line number Diff line number Diff line Loading @@ -235,7 +235,6 @@ sealed class OngoingActivityChipModel { override val isImportantForPrivacy: Boolean = false, override val icon: ChipIcon, override val colors: ColorsModel, // TODO(b/361346412): Enforce a max length requirement? val text: String, override val onClickListenerLegacy: View.OnClickListener? = null, override val clickBehavior: ClickBehavior, Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/chips/ui/model/ColorsModel.kt +3 −2 Original line number Diff line number Diff line Loading @@ -46,8 +46,9 @@ sealed interface ColorsModel { } /** The chip should match the system theme main color. */ // TODO(b/347717946): The chip's color isn't getting updated when the user switches theme, it // only gets updated when a different configuration change happens, like a rotation. // Note: When StatusBarChipsModernization is disabled, the chip's color doesn't get // updated when the user switches theme. It only gets updated when a different // configuration change happens, like a rotation. data object SystemThemed : ColorsModel { override fun background(context: Context): ColorStateList = ColorStateList.valueOf( Loading
packages/SystemUI/src/com/android/systemui/statusbar/chips/ui/model/OngoingActivityChipModel.kt +0 −1 Original line number Diff line number Diff line Loading @@ -235,7 +235,6 @@ sealed class OngoingActivityChipModel { override val isImportantForPrivacy: Boolean = false, override val icon: ChipIcon, override val colors: ColorsModel, // TODO(b/361346412): Enforce a max length requirement? val text: String, override val onClickListenerLegacy: View.OnClickListener? = null, override val clickBehavior: ClickBehavior, Loading