diff --git a/app/src/main/java/com/jasonette/seed/Core/JasonViewActivity.java b/app/src/main/java/com/jasonette/seed/Core/JasonViewActivity.java index 65d78af4..bd6dd3dd 100644 --- a/app/src/main/java/com/jasonette/seed/Core/JasonViewActivity.java +++ b/app/src/main/java/com/jasonette/seed/Core/JasonViewActivity.java @@ -2242,6 +2242,11 @@ private void setup_sections(JSONArray sections){ listView.setAdapter(adapter); // Set layout manager to position the items listView.setLayoutManager(new LinearLayoutManager(this)); + if (section_items.size() == 0) { + listView.setVisibility(View.GONE); + } else { + listView.setVisibility(View.VISIBLE); + } } else { //ArrayList old_section_items = adapter.getItems(); adapter.updateItems(section_items); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 41fe569a..ad236737 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,5 +1,5 @@ Jasonette - file://jason-app.json + file://hello.json file://preload.json