check local Wikipedia in search

This commit is contained in:
Nazar-Kutz 2020-06-30 18:29:46 +03:00
parent f42a81c74f
commit f5f3d28ed6

View file

@ -9,6 +9,7 @@ import androidx.fragment.app.Fragment;
import net.osmand.AndroidUtils;
import net.osmand.CallbackWithObject;
import net.osmand.osm.AbstractPoiType;
import net.osmand.plus.ContextMenuAdapter;
import net.osmand.plus.ContextMenuItem;
import net.osmand.plus.OsmandApplication;
@ -378,6 +379,11 @@ public class WikipediaPlugin extends OsmandPlugin {
if (pf.isWikiFilter()) {
return true;
}
} else if (obj instanceof AbstractPoiType) {
AbstractPoiType pt = (AbstractPoiType) obj;
if (pt.getKeyName().startsWith(WIKI_LANG)) {
return true;
}
}
}
return false;