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.getWikiArticle(amenity, text);
|
||||
} else {
|
||||
WikipediaArticleWikiLinkFragment.showInstance(mapActivity.getSupportFragmentManager(), text);
|
||||
WikipediaArticleWikiLinkFragment.showInstance(mapActivity.getSupportFragmentManager(), text);
|
||||
}
|
||||
} else {
|
||||
WikipediaDialogFragment.showInstance(mapActivity, amenity, text);
|
||||
|
|
|
@ -132,7 +132,6 @@ public class WikipediaArticleHelper implements RegionCallback {
|
|||
item = DownloadResources.findSmallestIndexItemAt(application,
|
||||
amenityArticle.getLocation(), DownloadActivityType.WIKIPEDIA_FILE);
|
||||
}
|
||||
|
||||
} catch (IOException e) {
|
||||
Log.e(TAG, e.getMessage(), e);
|
||||
}
|
||||
|
@ -257,7 +256,6 @@ public class WikipediaArticleHelper implements RegionCallback {
|
|||
articleName = url.replace(PAGE_PREFIX_HTTPS + lang + domain, "")
|
||||
.replaceAll("_", " ");
|
||||
}
|
||||
|
||||
try {
|
||||
articleName = URLDecoder.decode(articleName, "UTF-8");
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
|
@ -279,17 +277,12 @@ public class WikipediaArticleHelper implements RegionCallback {
|
|||
new AlertDialog.Builder(context)
|
||||
.setTitle(url)
|
||||
.setMessage(R.string.online_webpage_warning)
|
||||
.
|
||||
setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
|
||||
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
WikipediaDialogFragment.showFullArticle(context, Uri.parse(url), nightMode);
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
.setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
WikipediaDialogFragment.showFullArticle(context, Uri.parse(url), nightMode);
|
||||
}
|
||||
})
|
||||
.setNegativeButton(R.string.shared_string_cancel, null)
|
||||
.show();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue