
diff --git a/app/release/app-release.apk b/app/release/app-release.apk
index 3d317b5..3b4f010 100644
Binary files a/app/release/app-release.apk and b/app/release/app-release.apk differ
diff --git a/app/release/output.json b/app/release/output.json
index 4f2ee69..f4ee255 100644
--- a/app/release/output.json
+++ b/app/release/output.json
@@ -1 +1 @@
-[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":23,"versionName":"1.1.8","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":25,"versionName":"1.1.9","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
\ No newline at end of file
diff --git a/lib/src/main/java/com/king/zxing/CaptureHelper.java b/lib/src/main/java/com/king/zxing/CaptureHelper.java
index c9ff2bf..d98d18a 100644
--- a/lib/src/main/java/com/king/zxing/CaptureHelper.java
+++ b/lib/src/main/java/com/king/zxing/CaptureHelper.java
@@ -237,6 +237,7 @@ public class CaptureHelper implements CaptureLifecycle,CaptureTouchEvent,Capture
public void onPause(){
if (captureHandler != null) {
captureHandler.quitSynchronously();
+ captureHandler = null;
}
inactivityTimer.onPause();
ambientLightManager.stop();
@@ -520,7 +521,7 @@ public class CaptureHelper implements CaptureLifecycle,CaptureTouchEvent,Capture
return;
}
- if(isPlayBeep){//如果播放音效,则稍微延迟一点,给予播放音效时间
+ if(isPlayBeep && captureHandler != null){//如果播放音效,则稍微延迟一点,给予播放音效时间
captureHandler.postDelayed(() -> {
//如果设置了回调,并且onCallback返回为true,则表示拦截
if(onCaptureCallback!=null && onCaptureCallback.onResultCallback(text)){
diff --git a/versions.gradle b/versions.gradle
index fca3274..85f7b66 100644
--- a/versions.gradle
+++ b/versions.gradle
@@ -1,7 +1,7 @@
//App
def app_version = [:]
-app_version.versionCode = 23 //androidx 24
-app_version.versionName = "1.1.8"
+app_version.versionCode = 25 //androidx 26
+app_version.versionName = "1.1.9"
ext.app_version = app_version
//build version