Skip to content

Commit

Permalink
20210415 修正空指针异常
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyz19 committed Apr 15, 2021
1 parent 072a6b3 commit 7d122b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mylibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
defaultConfig {
minSdkVersion 16
targetSdkVersion 30
versionCode 2
versionName "1.1"
versionCode 3
versionName "1.2"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ public static void showCircleProgressDialog(int maxValue,Context mContext, Strin
}

public static void updateProgress(float value){
progressDialog.setProgress((int) value);
if(null != progressDialog){
progressDialog.setProgress((int) value);
}
}

public static void closeProgressDialog() {
Expand Down

0 comments on commit 7d122b8

Please sign in to comment.