kongzue 3 роки тому
батько
коміт
15a1e52c2b

+ 3 - 1
DialogX/src/main/java/com/kongzue/dialogx/util/DialogXFloatingWindowActivity.java

@@ -58,7 +58,9 @@ public class DialogXFloatingWindowActivity extends AppCompatActivity {
             @Override
             public boolean onTouch(View v, MotionEvent event) {
                 if (event.getAction() != MotionEvent.ACTION_CANCEL) {
-                    return ((Activity) BaseDialog.getContext()).dispatchTouchEvent(event);
+                    if (BaseDialog.getContext() != null) {
+                        return ((Activity) BaseDialog.getContext()).dispatchTouchEvent(event);
+                    }
                 }
                 return false;
             }

+ 1 - 1
gradle.properties

@@ -18,5 +18,5 @@ android.useAndroidX=true
 # Automatically convert third-party libraries to use AndroidX
 android.enableJetifier=true
 
-BUILD_VERSION=0.0.44.beta7
+BUILD_VERSION=0.0.44.debug7
 BUILD_VERSION_INT=43