From 086bcaa876da99f315a642e0f2c3886317cc447c Mon Sep 17 00:00:00 2001 From: Muhammad Taimoor Sultani Date: Fri, 25 Jun 2021 00:07:17 +0500 Subject: [PATCH] Fix: Hide Cancel button on progress type --- README.md | 4 ++-- sweetalert2/build.gradle | 4 ++-- .../src/main/java/taimoor/sultani/sweetalert2/Sweetalert.java | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 73044f2..2a92c80 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ The simplest way to use Sweetalert is to add the library as aar dependency to yo com.github.taimoorsultani android-sweetalert2 - 2.0.0 + 2.0.1 **Gradle** @@ -73,7 +73,7 @@ The simplest way to use Sweetalert is to add the library as aar dependency to yo } dependencies { - implementation 'com.github.taimoorsultani:android-sweetalert2:2.0.0' + implementation 'com.github.taimoorsultani:android-sweetalert2:2.0.1' } ## Usage diff --git a/sweetalert2/build.gradle b/sweetalert2/build.gradle index 69bdd15..96b32bd 100644 --- a/sweetalert2/build.gradle +++ b/sweetalert2/build.gradle @@ -9,8 +9,8 @@ android { defaultConfig { minSdkVersion 21 targetSdkVersion 30 - versionCode 5 - versionName "2.0.0" + versionCode 6 + versionName "2.0.1" } buildTypes { diff --git a/sweetalert2/src/main/java/taimoor/sultani/sweetalert2/Sweetalert.java b/sweetalert2/src/main/java/taimoor/sultani/sweetalert2/Sweetalert.java index 2963613..3807616 100644 --- a/sweetalert2/src/main/java/taimoor/sultani/sweetalert2/Sweetalert.java +++ b/sweetalert2/src/main/java/taimoor/sultani/sweetalert2/Sweetalert.java @@ -282,6 +282,7 @@ private void changeAlertType(int alertType, boolean fromCreate) { case PROGRESS_TYPE: mProgressFrame.setVisibility(View.VISIBLE); mConfirmButton.setVisibility(View.GONE); + mCancelButton.setVisibility(View.GONE); break; } adjustButtonContainerVisibility();