refactored buildTravelUrl
This commit is contained in:
parent
d62f5a53df
commit
a8de3846f8
1 changed files with 2 additions and 2 deletions
|
@ -326,7 +326,7 @@ public class WikiArticleHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String buildTravelUrl(String url, String lang) {
|
public static String buildTravelUrl(String url, String lang) {
|
||||||
String query = url.substring(url.indexOf(':') + 1);
|
String title = url.substring(url.indexOf(':') + 1);
|
||||||
return "https://osmand.net/travel?query=" + query + "&lang=" + lang;
|
return "https://osmand.net/travel?query=" + title + "&lang=" + lang;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue