Skip to content

Commit

Permalink
Merge pull request #11 from vijayrawatsan/SpinnerFix
Browse files Browse the repository at this point in the history
Spinner fix > 0 to >= 0. Minor fix.
  • Loading branch information
vijayrawatsan committed Jul 27, 2015
2 parents b1e581d + 2276ff4 commit 2b9009e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public void onCheckedChanged(CompoundButton compoundButton, boolean isChecked) {

public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
String parentKey = (String) parent.getTag(R.id.key);
if (position > 0) {
if (position >= 0) {
String value = (String) parent.getItemAtPosition(position + 1);
getView().writeValue(mStepName, parentKey, value);
}
Expand Down

0 comments on commit 2b9009e

Please sign in to comment.