Fixes p.1
This commit is contained in:
parent
989417ffab
commit
b389513d7d
1 changed files with 5 additions and 1 deletions
|
@ -27,6 +27,7 @@ import net.osmand.osm.MapPoiTypes;
|
||||||
import net.osmand.osm.PoiCategory;
|
import net.osmand.osm.PoiCategory;
|
||||||
import net.osmand.osm.PoiType;
|
import net.osmand.osm.PoiType;
|
||||||
import net.osmand.plus.OsmAndFormatter;
|
import net.osmand.plus.OsmAndFormatter;
|
||||||
|
import net.osmand.plus.OsmandApplication;
|
||||||
import net.osmand.plus.OsmandPlugin;
|
import net.osmand.plus.OsmandPlugin;
|
||||||
import net.osmand.plus.OsmandSettings;
|
import net.osmand.plus.OsmandSettings;
|
||||||
import net.osmand.plus.OsmandSettings.MetricsConstants;
|
import net.osmand.plus.OsmandSettings.MetricsConstants;
|
||||||
|
@ -43,6 +44,7 @@ import net.osmand.plus.widgets.tools.ClickableSpanTouchListener;
|
||||||
import net.osmand.plus.wikipedia.WikiArticleHelper;
|
import net.osmand.plus.wikipedia.WikiArticleHelper;
|
||||||
import net.osmand.plus.wikipedia.WikipediaArticleWikiLinkFragment;
|
import net.osmand.plus.wikipedia.WikipediaArticleWikiLinkFragment;
|
||||||
import net.osmand.plus.wikipedia.WikipediaDialogFragment;
|
import net.osmand.plus.wikipedia.WikipediaDialogFragment;
|
||||||
|
import net.osmand.plus.wikipedia.WikipediaPoiMenu;
|
||||||
import net.osmand.util.Algorithms;
|
import net.osmand.util.Algorithms;
|
||||||
import net.osmand.util.OpeningHoursParser;
|
import net.osmand.util.OpeningHoursParser;
|
||||||
|
|
||||||
|
@ -265,7 +267,9 @@ public class AmenityMenuBuilder extends MenuBuilder {
|
||||||
button.setOnClickListener(new View.OnClickListener() {
|
button.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
WikipediaDialogFragment.showInstance(mapActivity, amenity);
|
String preferredLocale = app.getSettings().MAP_PREFERRED_LOCALE.get();
|
||||||
|
WikipediaDialogFragment.showInstance(mapActivity, amenity,
|
||||||
|
WikipediaPoiMenu.getWikiArticleLocale(app, preferredLocale, amenity));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
button.setAllCaps(true);
|
button.setAllCaps(true);
|
||||||
|
|
Loading…
Reference in a new issue