Skip to content

Commit

Permalink
opt
Browse files Browse the repository at this point in the history
  • Loading branch information
heaven7 committed Jul 20, 2020
1 parent 04cf1eb commit bb93f94
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ public void requestData(boolean refresh) {
}
//show error.
if(!hasConnectedNetwork(getAppLoadingComponent().getRecyclerView().getContext())){
mComponent.showPlaceholderView(AppLoadingComponent.CODE_NO_NETWORK);
mComponent.getErrorDelegate().show(AppLoadingComponent.CODE_NO_NETWORK, null, null);
mAdapterDelegate.clearItems();
return;
Expand Down Expand Up @@ -194,6 +195,7 @@ public void onResult(String url, boolean refresh, T data) {
//empty
if (listData.isEmpty() && mPageM.getPageNo() == 1) {
if (!mCallback.showEmpty(this)) {
mComponent.showPlaceholderView(0);
mComponent.getEmptyDelegate().show(0, null, null);
}
return;
Expand Down

0 comments on commit bb93f94

Please sign in to comment.