Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuriy Budiyev committed Oct 26, 2017
1 parent 18c4413 commit fdf9006
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions src/main/java/com/budiyev/android/codescanner/CodeScanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
*/
package com.budiyev.android.codescanner;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

import android.Manifest;
import android.app.Activity;
import android.content.Context;
Expand All @@ -36,12 +42,6 @@
import com.google.zxing.BarcodeFormat;
import com.google.zxing.client.android.camera.CameraConfigurationUtils;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

/**
* Code scanner.
* Supports portrait and landscape screen orientations, back and front facing cameras,
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/com/budiyev/android/codescanner/Decoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
*/
package com.budiyev.android.codescanner;

import java.util.EnumMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;

import android.support.annotation.NonNull;

import com.google.zxing.BarcodeFormat;
Expand All @@ -31,12 +37,6 @@
import com.google.zxing.ReaderException;
import com.google.zxing.Result;

import java.util.EnumMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;

final class Decoder {
private final BlockingQueue<DecodeTask> mDecodeQueue = new LinkedBlockingQueue<>();
private final MultiFormatReader mReader;
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/budiyev/android/codescanner/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
*/
package com.budiyev.android.codescanner;

import java.util.Collections;
import java.util.Comparator;
import java.util.List;

import android.content.Context;
import android.graphics.ImageFormat;
import android.hardware.Camera;
Expand All @@ -34,10 +38,6 @@

import com.google.zxing.client.android.camera.CameraConfigurationUtils;

import java.util.Collections;
import java.util.Comparator;
import java.util.List;

final class Utils {
private static final float SQUARE_RATIO = 0.75f;
private static final float PORTRAIT_WIDTH_RATIO = 0.75f;
Expand Down

0 comments on commit fdf9006

Please sign in to comment.