refactored buildTravelUrl

This commit is contained in:
Chumva 2018-05-24 18:48:39 +03:00
parent d62f5a53df
commit a8de3846f8

View file

@ -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;
} }
} }