/** * 用户操作,取消分享 * * @return 是否成功取消等待提示框 */ public static boolean cancelShare() { if (waitProgressDialog.isShowing()) { // 取消下载 waitProgressDialog.dismiss(); waitProgressDialog = null; return true; } return false; }
/** * 取消分享 * * @return 是否成功取消等待提示框 */ public static boolean dismissWatiTinyUrlDialog() { if (waitTinyUrlDialog != null) { waitTinyUrlDialog.cancel(); waitTinyUrlDialog.dismiss(); waitTinyUrlDialog = null; return true; } return false; }