diff --git a/README.md b/README.md index e6f5c9b..93d08c5 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Code scanner library for [Android](https://developer.android.com), based on [ZXi Add dependency: ```gradle dependencies { - implementation 'com.budiyev.android:code-scanner:1.6.0' + implementation 'com.budiyev.android:code-scanner:1.6.1' } ``` Add camera permission to AndroidManifest.xml (Don't forget about dynamic permissions on API >= 23): diff --git a/build.gradle b/build.gradle index 2509d76..341dbd7 100644 --- a/build.gradle +++ b/build.gradle @@ -25,7 +25,7 @@ apply plugin: 'com.jfrog.bintray' ext { libraryName = 'CodeScanner' libraryDescription = 'Code scanner library for Android, based on ZXing' - libraryVersion = '1.6.0' + libraryVersion = '1.6.1' artifact = 'code-scanner' developerId = 'yuriy-budiyev' developerName = 'Yuriy Budiyev' @@ -46,7 +46,7 @@ android { defaultConfig { minSdkVersion 14 targetSdkVersion 26 - versionCode 28 + versionCode 29 versionName libraryVersion } diff --git a/src/main/java/com/budiyev/android/codescanner/CodeScanner.java b/src/main/java/com/budiyev/android/codescanner/CodeScanner.java index fcdc0f7..3722f13 100644 --- a/src/main/java/com/budiyev/android/codescanner/CodeScanner.java +++ b/src/main/java/com/budiyev/android/codescanner/CodeScanner.java @@ -597,8 +597,8 @@ private final class InitializationThread extends Thread { public InitializationThread(int width, int height) { super("Code scanner initialization thread"); - if (getPriority() != Thread.NORM_PRIORITY) { - setPriority(Thread.NORM_PRIORITY); + if (getPriority() != Thread.MIN_PRIORITY) { + setPriority(Thread.MIN_PRIORITY); } if (isDaemon()) { setDaemon(false); diff --git a/src/main/java/com/budiyev/android/codescanner/Decoder.java b/src/main/java/com/budiyev/android/codescanner/Decoder.java index 371e338..ca554cd 100644 --- a/src/main/java/com/budiyev/android/codescanner/Decoder.java +++ b/src/main/java/com/budiyev/android/codescanner/Decoder.java @@ -79,8 +79,8 @@ public boolean isProcessing() { private final class DecoderThread extends Thread { public DecoderThread() { super("Code scanner decode thread"); - if (getPriority() != Thread.NORM_PRIORITY) { - setPriority(Thread.NORM_PRIORITY); + if (getPriority() != Thread.MIN_PRIORITY) { + setPriority(Thread.MIN_PRIORITY); } if (isDaemon()) { setDaemon(false);