コード例 #1
0
 @Override
 protected void dealResult(FansResponse response, boolean fromRefresh) {
   if (NetworkUtils.handleResponseComm(response)) {
     return;
   }
   List<CommUser> users = response.result;
   if (CommonUtils.isListEmpty(users) && fromRefresh) {
     if (response.errCode == ErrorCode.NO_ERROR) {
       mActiveUserFgView.getBindDataSource().clear();
       mActiveUserFgView.notifyDataSetChanged();
     }
     mActiveUserFgView.showEmptyView();
     return;
   } else {
     mActiveUserFgView.hideEmptyView();
   }
   super.dealResult(response, fromRefresh);
 }