Minor improvements
This commit is contained in:
parent
f0e21c2f20
commit
c0cbdcafff
1 changed files with 4 additions and 2 deletions
|
@ -59,6 +59,7 @@ interface RegionCallback {
|
||||||
public class WikivoyageWebViewClient extends WebViewClient implements RegionCallback {
|
public class WikivoyageWebViewClient extends WebViewClient implements RegionCallback {
|
||||||
|
|
||||||
private static final String TAG = WikivoyageWebViewClient.class.getSimpleName();
|
private static final String TAG = WikivoyageWebViewClient.class.getSimpleName();
|
||||||
|
private static final String ZIP_EXT = ".zip";
|
||||||
|
|
||||||
private OsmandApplication app;
|
private OsmandApplication app;
|
||||||
private FragmentManager fragmentManager;
|
private FragmentManager fragmentManager;
|
||||||
|
@ -214,7 +215,8 @@ public class WikivoyageWebViewClient extends WebViewClient implements RegionCall
|
||||||
private TravelArticle article;
|
private TravelArticle article;
|
||||||
private FragmentManager fragmentManager;
|
private FragmentManager fragmentManager;
|
||||||
|
|
||||||
WikiArticleSearchTask(RegionCallback callback, TravelArticle article, String articleName, String regionName, FragmentManager fragmentManager,
|
WikiArticleSearchTask(RegionCallback callback, TravelArticle article, String articleName,
|
||||||
|
String regionName, FragmentManager fragmentManager,
|
||||||
String lang, MapActivity context, boolean nightMode, String url) {
|
String lang, MapActivity context, boolean nightMode, String url) {
|
||||||
this.fragmentManager = fragmentManager;
|
this.fragmentManager = fragmentManager;
|
||||||
this.regionName = regionName;
|
this.regionName = regionName;
|
||||||
|
@ -264,7 +266,7 @@ public class WikivoyageWebViewClient extends WebViewClient implements RegionCall
|
||||||
if (i.isDownloaded()) {
|
if (i.isDownloaded()) {
|
||||||
downloadedItems.add(i.getFileName()
|
downloadedItems.add(i.getFileName()
|
||||||
.replace("_" + IndexConstants.BINARY_MAP_VERSION, "")
|
.replace("_" + IndexConstants.BINARY_MAP_VERSION, "")
|
||||||
.replace(".zip", ""));
|
.replace(ZIP_EXT, ""));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue