summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSantiago Etchebehere <santie@google.com>2019-06-03 12:22:57 -0700
committerSantiago Etchebehere <santie@google.com>2019-06-03 12:22:57 -0700
commitc580de0fe9cca7c5a449e025cdc46f1ea8770a3b (patch)
treecbc4452cb11f0cbae780c01a5c9266279736b1f5
parentf55e7442836495aaf1010fb25506d14321e6bab4 (diff)
downloadThemePicker-c580de0fe9cca7c5a449e025cdc46f1ea8770a3b.tar.gz
Fix multiple selected options
Make sure options that are out of the screen get updated when selecting a different option so they get properly drawn when they're back in view. Fixes: 134176881 Change-Id: Iebc32f44da63ac5e4dc618c98d7f3a233cfa4b3c
-rw-r--r--src/com/android/customization/widget/OptionSelectorController.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/customization/widget/OptionSelectorController.java b/src/com/android/customization/widget/OptionSelectorController.java
index b2a81aa3..e3e2cc5e 100644
--- a/src/com/android/customization/widget/OptionSelectorController.java
+++ b/src/com/android/customization/widget/OptionSelectorController.java
@@ -152,6 +152,9 @@ public class OptionSelectorController<T extends CustomizationOption<T>> {
}
}
}
+ } else {
+ // Item is not visible, make sure the item is re-bound when it becomes visible
+ mAdapter.notifyItemChanged(index);
}
}