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();
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);
}
}
}
}

View file

@ -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");
}
/**