Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Commit

Permalink
hello app: default load
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignacio Alvarez committed Oct 19, 2020
1 parent fb92c39 commit 80da580
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<JSONObject> old_section_items = adapter.getItems();
adapter.updateItems(section_items);
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<resources>
<string name="app_name">Jasonette</string>
<string name="url">file://jason-app.json</string>
<string name="url">file://hello.json</string>
<string name="launch">file://preload.json</string>
</resources>

0 comments on commit 80da580

Please sign in to comment.