removed empty space
This commit is contained in:
parent
338b60ec54
commit
a36af7598f
2 changed files with 7 additions and 14 deletions
|
@ -298,7 +298,7 @@ public class AmenityMenuBuilder extends MenuBuilder {
|
||||||
WikipediaArticleHelper wikipediaArticleHelper = new WikipediaArticleHelper(mapActivity, mapActivity.getSupportFragmentManager(), !light);
|
WikipediaArticleHelper wikipediaArticleHelper = new WikipediaArticleHelper(mapActivity, mapActivity.getSupportFragmentManager(), !light);
|
||||||
wikipediaArticleHelper.getWikiArticle(amenity, text);
|
wikipediaArticleHelper.getWikiArticle(amenity, text);
|
||||||
} else {
|
} else {
|
||||||
WikipediaArticleWikiLinkFragment.showInstance(mapActivity.getSupportFragmentManager(), text);
|
WikipediaArticleWikiLinkFragment.showInstance(mapActivity.getSupportFragmentManager(), text);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
WikipediaDialogFragment.showInstance(mapActivity, amenity, text);
|
WikipediaDialogFragment.showInstance(mapActivity, amenity, text);
|
||||||
|
|
|
@ -132,7 +132,6 @@ public class WikipediaArticleHelper implements RegionCallback {
|
||||||
item = DownloadResources.findSmallestIndexItemAt(application,
|
item = DownloadResources.findSmallestIndexItemAt(application,
|
||||||
amenityArticle.getLocation(), DownloadActivityType.WIKIPEDIA_FILE);
|
amenityArticle.getLocation(), DownloadActivityType.WIKIPEDIA_FILE);
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Log.e(TAG, e.getMessage(), e);
|
Log.e(TAG, e.getMessage(), e);
|
||||||
}
|
}
|
||||||
|
@ -257,7 +256,6 @@ public class WikipediaArticleHelper implements RegionCallback {
|
||||||
articleName = url.replace(PAGE_PREFIX_HTTPS + lang + domain, "")
|
articleName = url.replace(PAGE_PREFIX_HTTPS + lang + domain, "")
|
||||||
.replaceAll("_", " ");
|
.replaceAll("_", " ");
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
articleName = URLDecoder.decode(articleName, "UTF-8");
|
articleName = URLDecoder.decode(articleName, "UTF-8");
|
||||||
} catch (UnsupportedEncodingException e) {
|
} catch (UnsupportedEncodingException e) {
|
||||||
|
@ -279,17 +277,12 @@ public class WikipediaArticleHelper implements RegionCallback {
|
||||||
new AlertDialog.Builder(context)
|
new AlertDialog.Builder(context)
|
||||||
.setTitle(url)
|
.setTitle(url)
|
||||||
.setMessage(R.string.online_webpage_warning)
|
.setMessage(R.string.online_webpage_warning)
|
||||||
.
|
.setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
|
||||||
setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
|
@Override
|
||||||
@Override
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
|
WikipediaDialogFragment.showFullArticle(context, Uri.parse(url), nightMode);
|
||||||
|
}
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
})
|
||||||
WikipediaDialogFragment.showFullArticle(context, Uri.parse(url), nightMode);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
})
|
|
||||||
.setNegativeButton(R.string.shared_string_cancel, null)
|
.setNegativeButton(R.string.shared_string_cancel, null)
|
||||||
.show();
|
.show();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue