add check for groups with no categories

This commit is contained in:
Chumva 2018-04-17 12:50:13 +03:00
parent 429aeeb403
commit d278cf9ea4
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

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