Merge pull request #6481 from osmandapp/kolomiets_branch

Kolomiets branch
This commit is contained in:
Alexey 2019-01-28 17:54:26 +03:00 committed by GitHub
commit bbfef8cecd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,6 @@ import java.util.Set;
public class FavoritesTreeFragment extends OsmandExpandableListFragment { public class FavoritesTreeFragment extends OsmandExpandableListFragment {
public static final int SEARCH_ID = -1; public static final int SEARCH_ID = -1;
// public static final int EXPORT_ID = 0; // public static final int EXPORT_ID = 0;
// public static final int IMPORT_ID = 1; // public static final int IMPORT_ID = 1;
@ -948,7 +947,10 @@ public class FavoritesTreeFragment extends OsmandExpandableListFragment {
} else { } else {
Set<FavouritePoint> set = favoritesSelected.get(group.name); Set<FavouritePoint> set = favoritesSelected.get(group.name);
if (set != null) { if (set != null) {
groupsToDelete.remove(group);
getGroupPosition(group.name);
set.remove(model); set.remove(model);
favouritesAdapter.notifyDataSetInvalidated();
} }
} }
updateSelectionMode(actionMode); updateSelectionMode(actionMode);