Update content description of the selected color theme
this CL corrects the cotent description of the selected color theme
Bug: 377785780
Flag: EXEMPT bugfix
Test: manual
Change-Id: Ifc3ee28eb3d7a7e7cccacd4f44f63137159d528f
diff --git a/src/com/android/customization/picker/color/ui/binder/ColorSectionViewBinder.kt b/src/com/android/customization/picker/color/ui/binder/ColorSectionViewBinder.kt
index 3adc913..88b7d39 100644
--- a/src/com/android/customization/picker/color/ui/binder/ColorSectionViewBinder.kt
+++ b/src/com/android/customization/picker/color/ui/binder/ColorSectionViewBinder.kt
@@ -66,7 +66,7 @@
optionContainer.paddingLeft,
16,
optionContainer.paddingRight,
- 16
+ 16,
)
} else {
moreColorsButton.isVisible = false
@@ -77,7 +77,7 @@
optionContainer.paddingLeft,
20,
optionContainer.paddingRight,
- 20
+ 20,
)
}
lifecycleOwner.lifecycleScope.launch {
@@ -129,11 +129,15 @@
)
}
val optionSelectedView = itemView.requireViewById<ImageView>(R.id.option_selected)
+ val colorView: View = itemView.requireViewById(R.id.option_tile)
+ colorView.isClickable = true
+ colorView.isFocusable = true
lifecycleOwner.lifecycleScope.launch {
launch {
item.isSelected.collect { isSelected ->
optionSelectedView.isVisible = isSelected
+ colorView.isSelected = isSelected
}
}
launch {