예제 #1
0
  @Override
  protected void requestData(boolean refresh) {

    if (event_type == EventList.EVENT_LIST_TYPE_NEW_EVENT) {
      mCatalog = -1;
      super.requestData(refresh);
      return;
    }
    if (AppContext.getInstance().isLogin()) {
      mCatalog = AppContext.getInstance().getLoginUid();
      super.requestData(refresh);
    } else {
      mErrorLayout.setErrorType(EmptyLayout.NETWORK_ERROR);
      mErrorLayout.setErrorMessage(getString(R.string.unlogin_tip));
    }
  }
예제 #2
0
 private void clickErrorLayout() {
   if (event_type == EventList.EVENT_LIST_TYPE_NEW_EVENT) {
     mErrorLayout.setErrorType(EmptyLayout.NETWORK_LOADING);
     requestData(true);
   } else {
     if (AppContext.getInstance().isLogin()) {
       mErrorLayout.setErrorType(EmptyLayout.NETWORK_LOADING);
       requestData(true);
     } else {
       UIHelper.showLoginActivity(getActivity());
     }
   }
 }