@Override public void onPostDone(int mode, int status, String message, PostBean postBean) { if (status == Constants.STATUS_SUCCESS) { if (postProgressDialog != null) { postProgressDialog.dismiss(message); } else { Toast.makeText(mCtx, message, Toast.LENGTH_SHORT).show(); } if (!mAuthorOnly) { if (mode != PostAsyncTask.MODE_EDIT_POST) mCurrentPage = mMaxPage; int floor = LAST_FLOOR; if (!TextUtils.isEmpty(postBean.getFloor()) && TextUtils.isDigitsOnly(postBean.getFloor())) floor = Integer.parseInt(postBean.getFloor()); if (floor == LAST_FLOOR || floor > 0) mFloorOfPage = floor; mCache.remove(mCurrentPage); showOrLoadPage(); } } else { if (postProgressDialog != null) { postProgressDialog.dismissError(message); } else { Toast.makeText(mCtx, message, Toast.LENGTH_LONG).show(); } } }
@Override public void onPrePost() { postProgressDialog = HiProgressDialog.show(mCtx, "正在发表..."); }