diff --git a/DialogX/src/main/java/com/kongzue/dialogx/dialogs/WaitDialog.java b/DialogX/src/main/java/com/kongzue/dialogx/dialogs/WaitDialog.java index 6ca95878..499f732e 100644 --- a/DialogX/src/main/java/com/kongzue/dialogx/dialogs/WaitDialog.java +++ b/DialogX/src/main/java/com/kongzue/dialogx/dialogs/WaitDialog.java @@ -560,6 +560,11 @@ public static void dismiss() { me().doDismiss(); } + public static void dismiss(Activity activity) { + WaitDialog instance = getInstance(activity); + if (instance != null) instance.doDismiss(); + } + protected static WaitDialog me() { for (BaseDialog baseDialog : getRunningDialogList()) { if (baseDialog instanceof WaitDialog) { diff --git a/gradle.properties b/gradle.properties index 66ec069d..2a3761d5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -18,5 +18,5 @@ android.useAndroidX=true # Automatically convert third-party libraries to use AndroidX android.enableJetifier=true -BUILD_VERSION=0.0.41.beta11 +BUILD_VERSION=0.0.41.beta13 BUILD_VERSION_INT=40