Skip to content

Commit

Permalink
Improved license showing.
Browse files Browse the repository at this point in the history
  • Loading branch information
jklmnn committed Dec 18, 2016
1 parent 0b2a0bc commit 5fd078e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/src/main/java/de/jkliemann/parkendd/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,13 @@ private void refresh(){
String comment = "";
if(!city.contributor().equals("")){
comment += city.contributor();
if(!city.license().equals("")){
comment += " - " + city.license();
String license = city.license();
if(!license.equals("")){
if(license.contains("http")){
comment += " - " + license.split("http")[0].trim();
}else {
comment += " - " + license;
}
}
}
this.setTitle(city.name());
Expand Down

0 comments on commit 5fd078e

Please sign in to comment.