[Android] TV color picker: force selection a pure variant upon color change
Nicolas Pomepuy
git at videolan.org
Tue Sep 20 15:06:15 UTC 2022
vlc-android | branch: 3.5.x | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Sep 13 15:16:15 2022 +0200| [0f7349a59e5e7517c95b77a2de53f1afba1a8bbf] | committer: Duncan McNamara
TV color picker: force selection a pure variant upon color change
> https://code.videolan.org/videolan/vlc-android/commit/0f7349a59e5e7517c95b77a2de53f1afba1a8bbf
---
.../src/main/java/org/videolan/television/ui/ColorPickerActivity.kt | 1 +
1 file changed, 1 insertion(+)
diff --git a/application/television/src/main/java/org/videolan/television/ui/ColorPickerActivity.kt b/application/television/src/main/java/org/videolan/television/ui/ColorPickerActivity.kt
index 57baa13fe..3f2fb33d5 100644
--- a/application/television/src/main/java/org/videolan/television/ui/ColorPickerActivity.kt
+++ b/application/television/src/main/java/org/videolan/television/ui/ColorPickerActivity.kt
@@ -271,6 +271,7 @@ class ColorPickerActivity : AppCompatActivity() {
if (position in colors.indices) {
val oldSelection = selectedIndex
selectedIndex = position
+ selectedVariantIndex = 9
notifyItemChanged(position)
notifyItemChanged(oldSelection)
notifyItemRangeChanged(colors.size, 20)
More information about the Android
mailing list