Skip to content

Commit

Permalink
Merge pull request #249 from akvo/release/2.1.0.1
Browse files Browse the repository at this point in the history
Release/2.1.0.1
  • Loading branch information
ichinaski committed Jan 15, 2015
2 parents a76b217 + c933735 commit 7c4c54b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
8 changes: 8 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Akvo FLOW app release notes
===========================

#ver 2.1.0.1
Date: 15 January 2015

New and noteworthy
------------------
* Dependent questions whose parent question allows multiple values had some hidden visibility issues. This is fixed now [#239]
* Cascade resource's inconsistent level number caused an app crash [#246]

#ver 2.1.0
Date: 15 December 2014

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.akvo.flow"
android:versionCode="1"
android:versionName="2.1.0" >
android:versionName="2.1.0.1" >

<uses-sdk
android:minSdkVersion="10"
Expand Down
20 changes: 10 additions & 10 deletions app/src/main/java/org/akvo/flow/domain/Dependency.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,18 @@ public void setAnswer(String answer) {
}

public boolean isMatch(String val) {
boolean isMatch = false;
if (answer != null) {
String[] tokens = answer.split("\\|");
for (int i = 0; i < tokens.length; i++) {
if (tokens[i].trim().equals(val.trim())) {
isMatch = true;
break;
if (answer == null || val == null) {
return answer == val;
}

for (String v : val.split("\\|", -1)) {
for (String a : answer.split("\\|", -1)) {
if (v.equals(a)) {
return true;
}
}
} else if (val == null) {
isMatch = true;
}
return isMatch;

return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private void addLevelView(int position, List<Node> values, int selection) {
final TextView text = (TextView)view.findViewById(R.id.text);
final Spinner spinner = (Spinner)view.findViewById(R.id.spinner);

text.setText(mLevels != null && mLevels.length >= position ? mLevels[position] : "");
text.setText(mLevels != null && mLevels.length > position ? mLevels[position] : "");

// Insert a fake 'Select' value
Node node = new Node(ID_NONE, getContext().getString(R.string.select));
Expand Down

0 comments on commit 7c4c54b

Please sign in to comment.