commit | c580de0fe9cca7c5a449e025cdc46f1ea8770a3b | [log] [tgz] |
---|---|---|
author | Santiago Etchebehere <santie@google.com> | Mon Jun 03 12:22:57 2019 -0700 |
committer | Santiago Etchebehere <santie@google.com> | Mon Jun 03 12:22:57 2019 -0700 |
tree | cbc4452cb11f0cbae780c01a5c9266279736b1f5 | |
parent | f55e7442836495aaf1010fb25506d14321e6bab4 [diff] |
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
diff --git a/src/com/android/customization/widget/OptionSelectorController.java b/src/com/android/customization/widget/OptionSelectorController.java index b2a81aa..e3e2cc5 100644 --- a/src/com/android/customization/widget/OptionSelectorController.java +++ b/src/com/android/customization/widget/OptionSelectorController.java
@@ -152,6 +152,9 @@ } } } + } else { + // Item is not visible, make sure the item is re-bound when it becomes visible + mAdapter.notifyItemChanged(index); } }