Skip to content

Commit

Permalink
Fix issue labexp#189, adding multiple tags to track
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelAB committed May 17, 2019
1 parent 9cf5174 commit 7f1ff27
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/src/main/java/net/osmtracker/activity/TrackLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,15 @@ private void saveTagsForTrack(){
}
}

fixedTags.add("osmtracker");

// Check if the osmtracker tag has already been added
String trackerTag = "osmtracker";
int trackerTagIndex = tags.indexOf(trackerTag);

if(trackerTagIndex == -1){
// the tag "osmtracker doesn't exist, then add it
tags.append(trackerTag).append(",");
}

//create the string with all tags
for(String simpleName : fixedTags){
Expand Down

0 comments on commit 7f1ff27

Please sign in to comment.