@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mActor = new ActivitiesActor(getActivity(), this); mProgressDialog = CustomProgressDialog.createDialog(getActivity()); mProgressDialog.show(); mActor.loadEvent(page); }
@Override public void onDestroy() { if (null != mProgressDialog) mProgressDialog.dismiss(); super.onDestroy(); }
@Override public void onResultSuccess(String reqUrl, Object data) { mProgressDialog.dismiss(); mActor.updateList(true); }
@Override public void onTokenTimeout() { mProgressDialog.dismiss(); ZhongTuanApp.getInstance().logout(getActivity()); }
@Override public void onResultError(String reqUrl, String errMsg) { mProgressDialog.dismiss(); }