Merge branch 'master' of ssh://github.com/osmandapp/Osmand into RoutePreparationMenu
This commit is contained in:
commit
b9a6950f02
2 changed files with 7 additions and 6 deletions
|
@ -710,11 +710,12 @@ public class SearchCoreFactory {
|
|||
List<PoiType> additionals = pt.getPoiAdditionals();
|
||||
if (additionals != null) {
|
||||
for (PoiType a : additionals) {
|
||||
if (!a.isReference() && !results.contains(a)
|
||||
&& (nm.matches(a.getEnTranslation())
|
||||
|| nm.matches(a.getTranslation())
|
||||
|| nm.matches(a.getSynonyms()))) {
|
||||
results.add(a);
|
||||
if (!a.isReference() && !results.contains(a)) {
|
||||
String enTranslation = a.getEnTranslation().toLowerCase();
|
||||
if (!"yes".equals(enTranslation) && !"no".equals(enTranslation)
|
||||
&& (nm.matches(enTranslation) || nm.matches(a.getTranslation()) || nm.matches(a.getSynonyms()))) {
|
||||
results.add(a);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -422,7 +422,7 @@ public class SQLiteTileSource implements ITileSource {
|
|||
if (db == null || db.isReadOnly() || onlyReadonlyAvailable) {
|
||||
return;
|
||||
}
|
||||
db.execSQL("TRUNCATE TABLE tiles");
|
||||
db.execSQL("DELETE FROM tiles");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue