Browse Source

update 0.0.20 ver.
fix bugs

kongzue 4 years ago
parent
commit
3e0625d68e

+ 3 - 3
DialogX/build.gradle

@@ -6,7 +6,7 @@ def siteUrl = 'https://github.com/kongzue/DialogX' //项目在github主页地址
 def gitUrl = 'https://github.com/kongzue/DialogX.git'   //Git仓库的地址
 
 group = "com.kongzue.dialogx"
-version = "0.0.19"
+version = "0.0.20"
 
 android {
     compileSdkVersion 30
@@ -14,8 +14,8 @@ android {
     defaultConfig {
         minSdkVersion 21
         targetSdkVersion 30
-        versionCode 19
-        versionName "0.0.19"
+        versionCode 20
+        versionName "0.0.20"
 
         consumerProguardFiles "consumer-rules.pro"
 

+ 2 - 2
DialogX/src/main/java/com/kongzue/dialogx/dialogs/BottomDialog.java

@@ -499,11 +499,11 @@ public class BottomDialog extends BaseDialog {
     }
     
     public void refreshUI() {
-        if (dialogImpl == null) return;
+        if (getRootFrameLayout() == null) return;
         getRootFrameLayout().post(new Runnable() {
             @Override
             public void run() {
-                dialogImpl.refreshView();
+                if (dialogImpl!=null)dialogImpl.refreshView();
             }
         });
     }

+ 2 - 2
DialogX/src/main/java/com/kongzue/dialogx/dialogs/CustomDialog.java

@@ -215,11 +215,11 @@ public class CustomDialog extends BaseDialog {
     }
     
     public void refreshUI() {
-        if (dialogImpl == null) return;
+        if (getRootFrameLayout() == null) return;
         getRootFrameLayout().post(new Runnable() {
             @Override
             public void run() {
-                dialogImpl.refreshView();
+                if (dialogImpl!=null)dialogImpl.refreshView();
             }
         });
     }

+ 2 - 2
DialogX/src/main/java/com/kongzue/dialogx/dialogs/FullScreenDialog.java

@@ -233,11 +233,11 @@ public class FullScreenDialog extends BaseDialog {
     }
     
     public void refreshUI() {
-        if (dialogImpl == null) return;
+        if (getRootFrameLayout() == null) return;
         getRootFrameLayout().post(new Runnable() {
             @Override
             public void run() {
-                dialogImpl.refreshView();
+                if (dialogImpl!=null)dialogImpl.refreshView();
             }
         });
     }

+ 2 - 2
DialogX/src/main/java/com/kongzue/dialogx/dialogs/MessageDialog.java

@@ -197,11 +197,11 @@ public class MessageDialog extends BaseDialog {
     }
     
     public void refreshUI() {
-        if (dialogImpl == null) return;
+        if (getRootFrameLayout() == null) return;
         getRootFrameLayout().post(new Runnable() {
             @Override
             public void run() {
-                dialogImpl.refreshView();
+                if (dialogImpl!=null)dialogImpl.refreshView();
             }
         });
     }

+ 2 - 2
DialogX/src/main/java/com/kongzue/dialogx/dialogs/PopTip.java

@@ -481,11 +481,11 @@ public class PopTip extends BaseDialog {
     }
     
     public void refreshUI() {
-        if (dialogImpl == null) return;
+        if (getRootFrameLayout() == null) return;
         getRootFrameLayout().post(new Runnable() {
             @Override
             public void run() {
-                dialogImpl.refreshView();
+                if (dialogImpl!=null)dialogImpl.refreshView();
             }
         });
     }

+ 2 - 2
DialogX/src/main/java/com/kongzue/dialogx/dialogs/WaitDialog.java

@@ -374,11 +374,11 @@ public class WaitDialog extends BaseDialog {
     }
     
     public void refreshUI() {
-        if (dialogImpl == null) return;
+        if (getRootFrameLayout() == null) return;
         getRootFrameLayout().post(new Runnable() {
             @Override
             public void run() {
-                dialogImpl.refreshView();
+                if (dialogImpl!=null)dialogImpl.refreshView();
             }
         });
     }

+ 3 - 3
DialogXIOSStyle/build.gradle

@@ -6,7 +6,7 @@ def siteUrl = 'https://github.com/kongzue/DialogX' //项目在github主页地址
 def gitUrl = 'https://github.com/kongzue/DialogX.git'   //Git仓库的地址
 
 group = "com.kongzue.dialogx.style.ios"
-version = "0.0.19"
+version = "0.0.20"
 
 android {
     compileSdkVersion 30
@@ -14,8 +14,8 @@ android {
     defaultConfig {
         minSdkVersion 21
         targetSdkVersion 30
-        versionCode 19
-        versionName "0.0.19"
+        versionCode 20
+        versionName "0.0.20"
     }
 
     buildTypes {

+ 3 - 3
DialogXKongzueStyle/build.gradle

@@ -6,7 +6,7 @@ def siteUrl = 'https://github.com/kongzue/DialogX' //项目在github主页地址
 def gitUrl = 'https://github.com/kongzue/DialogX.git'   //Git仓库的地址
 
 group = "com.kongzue.dialogx.style.kongzue"
-version = "0.0.19"
+version = "0.0.20"
 
 android {
     compileSdkVersion 30
@@ -14,8 +14,8 @@ android {
     defaultConfig {
         minSdkVersion 21
         targetSdkVersion 30
-        versionCode 19
-        versionName "0.0.19"
+        versionCode 20
+        versionName "0.0.20"
     }
 
     buildTypes {

+ 3 - 3
DialogXMIUIStyle/build.gradle

@@ -6,7 +6,7 @@ def siteUrl = 'https://github.com/kongzue/DialogX' //项目在github主页地址
 def gitUrl = 'https://github.com/kongzue/DialogX.git'   //Git仓库的地址
 
 group = "com.kongzue.dialogx.style.miui"
-version = "0.0.19"
+version = "0.0.20"
 
 android {
     compileSdkVersion 30
@@ -14,8 +14,8 @@ android {
     defaultConfig {
         minSdkVersion 21
         targetSdkVersion 30
-        versionCode 19
-        versionName "0.0.19"
+        versionCode 20
+        versionName "0.0.20"
 
     }