Browse Source

0.0.39 release

kongzue 4 years ago
parent
commit
3931b17518

+ 2 - 1
DialogX/src/main/java/com/kongzue/dialogx/util/views/NoArticulatedProgressView.java

@@ -19,6 +19,7 @@ import android.view.animation.LinearInterpolator;
 
 import androidx.annotation.Nullable;
 
+import com.kongzue.dialogx.DialogX;
 import com.kongzue.dialogx.R;
 import com.kongzue.dialogx.interfaces.ProgressViewInterface;
 
@@ -188,7 +189,7 @@ public class NoArticulatedProgressView extends View implements ProgressViewInter
         }
         if (tickShowRunnable != null) {
             tickShowRunnable.run();
-            performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
+            if (DialogX.useHaptic)performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
             tickShowRunnable = null;
         }
         switch (status) {

+ 2 - 1
DialogXIOSStyle/src/main/java/com/kongzue/dialogx/style/views/ProgressView.java

@@ -20,6 +20,7 @@ import android.view.animation.AccelerateDecelerateInterpolator;
 import android.view.animation.DecelerateInterpolator;
 import android.view.animation.LinearInterpolator;
 
+import com.kongzue.dialogx.DialogX;
 import com.kongzue.dialogx.interfaces.ProgressViewInterface;
 import com.kongzue.dialogx.iostheme.R;
 
@@ -215,7 +216,7 @@ public class ProgressView extends View implements ProgressViewInterface {
         }
         if (tickShowRunnable != null) {
             tickShowRunnable.run();
-            performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
+            if (DialogX.useHaptic)performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
             tickShowRunnable = null;
         }
         switch (status) {

+ 1 - 0
app/src/main/java/com/kongzue/dialogxdemo/App.java

@@ -25,6 +25,7 @@ public class App extends BaseApp<App> {
     public void init() {
         DialogX.init(this);
         DialogX.implIMPLMode= DialogX.IMPL_MODE.VIEW;
+        DialogX.useHaptic = false;
         DialogX.globalStyle = new MaterialStyle() {
             @Override
             public PopTipSettings popTipSettings() {

+ 2 - 2
gradle.properties

@@ -18,5 +18,5 @@ android.useAndroidX=true
 # Automatically convert third-party libraries to use AndroidX
 android.enableJetifier=true
 
-BUILD_VERSION=0.0.39.beta5
-BUILD_VERSION_INT=38
+BUILD_VERSION=0.0.39
+BUILD_VERSION_INT=39