From c0cbdcafff033a4921213731bb6ff98b9c44ce9b Mon Sep 17 00:00:00 2001 From: PaulStets Date: Mon, 7 May 2018 10:19:32 +0300 Subject: [PATCH] Minor improvements --- .../net/osmand/plus/wikivoyage/WikivoyageWebViewClient.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageWebViewClient.java b/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageWebViewClient.java index 0fe99d6bab..e78f8d415a 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageWebViewClient.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageWebViewClient.java @@ -59,6 +59,7 @@ interface RegionCallback { public class WikivoyageWebViewClient extends WebViewClient implements RegionCallback { private static final String TAG = WikivoyageWebViewClient.class.getSimpleName(); + private static final String ZIP_EXT = ".zip"; private OsmandApplication app; private FragmentManager fragmentManager; @@ -214,7 +215,8 @@ public class WikivoyageWebViewClient extends WebViewClient implements RegionCall private TravelArticle article; 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) { this.fragmentManager = fragmentManager; this.regionName = regionName; @@ -264,7 +266,7 @@ public class WikivoyageWebViewClient extends WebViewClient implements RegionCall if (i.isDownloaded()) { downloadedItems.add(i.getFileName() .replace("_" + IndexConstants.BINARY_MAP_VERSION, "") - .replace(".zip", "")); + .replace(ZIP_EXT, "")); } } }