diff --git a/packages/SystemUI/res/drawable/control_background_ripple.xml b/packages/SystemUI/res/drawable/control_background_ripple.xml index 37914e2728117..27e3da9fc4620 100644 --- a/packages/SystemUI/res/drawable/control_background_ripple.xml +++ b/packages/SystemUI/res/drawable/control_background_ripple.xml @@ -17,7 +17,10 @@ - + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/layout/controls_base_item.xml b/packages/SystemUI/res/layout/controls_base_item.xml index b83e500fbaeb0..5119b59424d45 100644 --- a/packages/SystemUI/res/layout/controls_base_item.xml +++ b/packages/SystemUI/res/layout/controls_base_item.xml @@ -109,6 +109,10 @@ android:layout_height="wrap_content" android:layout_gravity="bottom|end" android:button="@drawable/controls_btn_star" + android:background="@android:color/transparent" + android:clickable="false" + android:selectable="false" + android:importantForAccessibility="no" android:layout_marginTop="4dp" android:layout_marginStart="4dp" app:layout_constraintStart_toEndOf="@id/subtitle" diff --git a/packages/SystemUI/src/com/android/systemui/controls/management/ControlAdapter.kt b/packages/SystemUI/src/com/android/systemui/controls/management/ControlAdapter.kt index 764fda05354cf..1291dd98932e5 100644 --- a/packages/SystemUI/src/com/android/systemui/controls/management/ControlAdapter.kt +++ b/packages/SystemUI/src/com/android/systemui/controls/management/ControlAdapter.kt @@ -151,10 +151,10 @@ private class ControlHolder(view: View, val favoriteCallback: ModelFavoriteChang subtitle.text = data.control.subtitle favorite.isChecked = data.favorite removed.text = if (data.removed) "Removed" else "" - favorite.setOnClickListener { + itemView.setOnClickListener { + favorite.isChecked = !favorite.isChecked favoriteCallback(data.control.controlId, favorite.isChecked) } - itemView.setOnClickListener { favorite.performClick() } applyRenderInfo(renderInfo) }