Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Explanation
This PR is actually a quite weird fix for radio buttons.
SelectionInteractionView
is used, the default value forselectionItemInputType
isCheckBoxes
, which was getting updated later on in code but was not getting reflected in UI.SelectionInteractionView
, even though the information that we have to showRadioButton
is getting transferred correctly butadapter!!.notifyDataSetChanged()
is not updating the UI.selection_interaction_item.xml
changing the order of data binding and bringingitemInputType
to top inSelectionInteractionView
worked which made me wondering that do we need to follow order of xml attributes while writing them inXML
file?Option+cmd+L
which will reorganise the XML file in alphabetical order and again the same issue will arise, I changed the name ofitemInputType
toallOptionstemInputType
, so that it remains on top even in case of reorganising.Checklist