Skip to content

Commit

Permalink
1. delete refreshStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
beiger committed Nov 14, 2018
1 parent 55649aa commit fccd60c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,6 @@ protected void bindAndObserve() {
@Override
public void onChanged(PagedList<T> data) {
mAdapter.submitList(data);
if (data == null || data.size() == 0) {
getNetworkState().setValue(Status.NONE);
} else {
getNetworkState().setValue(Status.SUCCESS);
}
}
});
getNetworkState().observe(this, new Observer<Status>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,6 @@ public void onChanged(@Nullable Status status) {
@Override
public void onChanged(List<T> list) {
mAdapter.setData(list);
if (list == null || list.size() == 0) {
getNetworkState().setValue(Status.NONE);
} else {
getNetworkState().setValue(Status.SUCCESS);
}
}
});
getRefreshState().observe(this, new Observer<Status>() {
Expand Down

0 comments on commit fccd60c

Please sign in to comment.