Skip to content

Commit

Permalink
one more thing
Browse files Browse the repository at this point in the history
  • Loading branch information
matkoniecz committed Feb 28, 2018
1 parent e085079 commit 69512ff
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.os.Bundle;
import android.support.annotation.NonNull;

import java.util.List;
import java.util.Map;

import javax.inject.Inject;
Expand All @@ -25,7 +26,11 @@ public class AddBikeParkingType extends SimpleOverpassQuestType

@Override
public void applyAnswerTo(Bundle answer, StringMapChangesBuilder changes) {

List<String> values = answer.getStringArrayList(AddBikeParkingTypeForm.OSM_VALUES);
if(values != null && values.size() == 1)
{
changes.add("bicycle_parking", values.get(0));
}
}

@Override public String getCommitMessage() { return "Add bicycle parking type"; }
Expand Down

0 comments on commit 69512ff

Please sign in to comment.