Skip to content

Commit

Permalink
semi colon delimited values working #103
Browse files Browse the repository at this point in the history
  • Loading branch information
hallahan committed Jan 6, 2016
1 parent 227471c commit c09068e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -103,6 +103,7 @@ public String getSemiColonDelimitedTagValues() {
ODKTagItem item = buttonIdToODKTagItemHash.get(id);
if (item != null) {
if (firstVal) {
firstVal = false;
values = item.getValue();
} else {
values += ';' + item.getValue();
Expand Down
Expand Up @@ -78,6 +78,7 @@ private void setupCheckBoxes() {
String prevTagVal = tagEdit.getTagVal();
boolean prevTagValInTagItems = false;
Collection<ODKTagItem> odkTagItems = odkTag.getItems();
int id = 1;
for (ODKTagItem item : odkTagItems) {
String label = item.getLabel();
String value = item.getValue();
Expand All @@ -100,8 +101,8 @@ private void setupCheckBoxes() {
if (prevTagVal != null && value.equals(prevTagVal)) {
checkBox.toggle();
}
int id = checkBox.getId();
odkTag.putButtonIdToTagItemHash(id, item);
checkBox.setId(id);
odkTag.putButtonIdToTagItemHash(id++, item);
odkTag.addCheckbox(checkBox);
checkboxLinearLayout.addView(textView);
}
Expand Down

0 comments on commit c09068e

Please sign in to comment.