commit | 5be0741c4eb449974df86b92ab80c113e8af8df7 | [log] [tgz] |
---|---|---|
author | Jason Thai <jasontt@google.com> | Wed Sep 18 16:53:28 2024 +0000 |
committer | Jason Thai <jasontt@google.com> | Wed Sep 18 21:03:28 2024 +0000 |
tree | 3f412829eca1f222315516dae8baa7a285a919a6 | |
parent | f5eda4ab974ef1c5c59c4fe51e5ad337935fd462 [diff] |
Increase max color options size Set the COLOR_SECTION_OPTION_SIZE to 6 to match the max weight sum of color_section_num_columns to address for varied numbers of color options based on window size in freeform window mode. Before: http://screen/6cSUkexrJCYNhJS After: http://screen/B35HUWo7rmCRTP4 Phone before: http://screen/758ct5Y7kownzCU Phone after: http://screen/AC7kGpRdDubgTaT Bug: 366294877 Flag: EXEMPT bugfix Test: Manually Change-Id: Icd183899ad5401331e43644ac2a88c2e16d7f399
diff --git a/src/com/android/customization/picker/color/ui/viewmodel/ColorPickerViewModel.kt b/src/com/android/customization/picker/color/ui/viewmodel/ColorPickerViewModel.kt index 52df31a..61a648f 100644 --- a/src/com/android/customization/picker/color/ui/viewmodel/ColorPickerViewModel.kt +++ b/src/com/android/customization/picker/color/ui/viewmodel/ColorPickerViewModel.kt
@@ -202,6 +202,6 @@ } companion object { - private const val COLOR_SECTION_OPTION_SIZE = 5 + private const val COLOR_SECTION_OPTION_SIZE = 6 } }