add check for disabled group

This commit is contained in:
Chumva 2018-11-13 15:33:39 +02:00
parent cd88c9ee4a
commit dd1be8f363

View file

@ -446,7 +446,7 @@ public class MapMarkersGroupsAdapter extends RecyclerView.Adapter<RecyclerView.V
final GPXFile[] gpxFile = new GPXFile[1];
boolean disabled = !enabled;
if (enabled && !group.wasShown() && group.getWptCategories().size() > 1) {
if (groupIsDisabled && !group.wasShown() && group.getWptCategories().size() > 1) {
group.setWasShown(true);
Bundle args = new Bundle();
args.putString(SelectWptCategoriesBottomSheetDialogFragment.GPX_FILE_PATH_KEY, group.getGpxPath());