Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuriy Budiyev committed Nov 3, 2017
1 parent fdf9006 commit f91104e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -46,7 +46,7 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 26
versionCode 28
versionCode 29
versionName libraryVersion
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/budiyev/android/codescanner/Decoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f91104e

Please sign in to comment.