Added clearing tree view before refreshing.
This commit is contained in:
parent
c63386bb12
commit
5bc86ce49a
@ -128,6 +128,8 @@ public class MainActivity extends AppCompatActivity
|
||||
mConnectionErrorImageView.setVisibility(View.INVISIBLE);
|
||||
mErrorTextView.setVisibility(View.INVISIBLE);
|
||||
mTreeViewContainer.setVisibility(View.VISIBLE);
|
||||
rootNode.setChildren(new ArrayList<TreeNode>());
|
||||
treeView.refreshTreeView();
|
||||
mPresenter.getFirstLevel();
|
||||
}
|
||||
|
||||
|
@ -109,6 +109,8 @@ public class SearchableActivity extends AppCompatActivity implements MainContrac
|
||||
mConnectionErrorImageView.setVisibility(View.INVISIBLE);
|
||||
mErrorTextView.setVisibility(View.INVISIBLE);
|
||||
mTreeViewContainer.setVisibility(View.VISIBLE);
|
||||
rootNode.setChildren(new ArrayList<TreeNode>());
|
||||
treeView.refreshTreeView();
|
||||
searchablePresenter.fetchDetailsTreeByName(detailName);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user