@Override protected void onPreExecute() { mCommonActivityTitle.showTitleLeftLoading(); if (!CommUtil.JudgeNetWorkStatus(ApplicationVariable.INSTANCE.applicationContext)) { GlobalToast.showToast(R.string.net_warn_no_network, 0); hasNet = false; // 仅提示,会加载缓存 } super.onPreExecute(); }
@Override protected void onPreExecute() { if (!CommUtil.JudgeNetWorkStatus(ApplicationVariable.INSTANCE.applicationContext)) { GlobalToast.showToast(R.string.net_warn_no_network, 0); cancel(true); // 失败 存入草稿 savePostDraft(); return; } mCommonActivityTitle.showTitleLeftLoading(); }