check local Wikipedia in search
This commit is contained in:
parent
f42a81c74f
commit
f5f3d28ed6
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue