[Android] TV color picker: force selection a pure variant upon color change

Nicolas Pomepuy git at videolan.org
Tue Sep 20 13:49:30 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Sep 13 15:16:15 2022 +0200| [a87422049fa3c6a5ffc42db368f3b2377765b728] | committer: Nicolas Pomepuy

TV color picker: force selection a pure variant upon color change

> https://code.videolan.org/videolan/vlc-android/commit/a87422049fa3c6a5ffc42db368f3b2377765b728
---

 .../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