Merge branch 'master' of ssh://github.com/osmandapp/Osmand into RoutePreparationMenu

This commit is contained in:
Chumva 2018-11-26 10:33:00 +02:00
commit b9a6950f02
2 changed files with 7 additions and 6 deletions

View file

@ -710,11 +710,12 @@ public class SearchCoreFactory {
List<PoiType> additionals = pt.getPoiAdditionals(); List<PoiType> additionals = pt.getPoiAdditionals();
if (additionals != null) { if (additionals != null) {
for (PoiType a : additionals) { for (PoiType a : additionals) {
if (!a.isReference() && !results.contains(a) if (!a.isReference() && !results.contains(a)) {
&& (nm.matches(a.getEnTranslation()) String enTranslation = a.getEnTranslation().toLowerCase();
|| nm.matches(a.getTranslation()) if (!"yes".equals(enTranslation) && !"no".equals(enTranslation)
|| nm.matches(a.getSynonyms()))) { && (nm.matches(enTranslation) || nm.matches(a.getTranslation()) || nm.matches(a.getSynonyms()))) {
results.add(a); results.add(a);
}
} }
} }
} }

View file

@ -422,7 +422,7 @@ public class SQLiteTileSource implements ITileSource {
if (db == null || db.isReadOnly() || onlyReadonlyAvailable) { if (db == null || db.isReadOnly() || onlyReadonlyAvailable) {
return; return;
} }
db.execSQL("TRUNCATE TABLE tiles"); db.execSQL("DELETE FROM tiles");
} }
/** /**