Skip to content

Commit

Permalink
Fix: Hide Cancel button on progress type
Browse files Browse the repository at this point in the history
  • Loading branch information
taimoorsultani committed Jun 24, 2021
1 parent 125a6ec commit 086bcaa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ The simplest way to use Sweetalert is to add the library as aar dependency to yo
<dependency>
<groupId>com.github.taimoorsultani</groupId>
<artifactId>android-sweetalert2</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
</dependency>

**Gradle**
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions sweetalert2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode 5
versionName "2.0.0"
versionCode 6
versionName "2.0.1"
}

buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 086bcaa

Please sign in to comment.