Merge branch 'sasha_pasha_branch' of ssh://github.com/osmandapp/Osmand into sasha_pasha_branch
This commit is contained in:
commit
7f7589a673
2 changed files with 4 additions and 3 deletions
|
@ -302,6 +302,9 @@ public class MapMarkersHelper {
|
|||
|
||||
if (group.getType() == MarkersSyncGroup.FAVORITES_TYPE) {
|
||||
FavouritesDbHelper.FavoriteGroup favGroup = ctx.getFavorites().getGroup(group.name);
|
||||
if (favGroup == null) {
|
||||
return;
|
||||
}
|
||||
if (!favGroup.visible) {
|
||||
removeActiveMarkersFromSyncGroup(group.id);
|
||||
return;
|
||||
|
|
|
@ -117,9 +117,7 @@ public class MapMarkersDbHelper {
|
|||
}
|
||||
|
||||
private void onUpgrade(SQLiteConnection db, int oldVersion, int newVersion) {
|
||||
db.execSQL("DROP TABLE IF EXISTS " + MARKERS_TABLE_NAME);
|
||||
db.execSQL("DROP TABLE IF EXISTS " + GROUPS_TABLE_NAME);
|
||||
onCreate(db);
|
||||
|
||||
}
|
||||
|
||||
private void saveExistingMarkersToDb() {
|
||||
|
|
Loading…
Reference in a new issue