add check for groups with no categories
This commit is contained in:
parent
429aeeb403
commit
d278cf9ea4
2 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:descendantFocusability="blocksDescendants"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
|
|
|
@ -439,7 +439,7 @@ public class MapMarkersGroupsAdapter extends RecyclerView.Adapter<RecyclerView.V
|
|||
final MapMarkersHelper mapMarkersHelper = app.getMapMarkersHelper();
|
||||
final GPXFile[] gpxFile = new GPXFile[1];
|
||||
boolean disabled = !enabled;
|
||||
if (groupIsDisabled&&!group.wasShown()) {
|
||||
if (groupIsDisabled && !group.wasShown() && group.getWptCategoriesString() != null) {
|
||||
group.setWasShown(true);
|
||||
|
||||
Bundle args = new Bundle();
|
||||
|
|
Loading…
Reference in a new issue