From 5f6e051e68914eb8883970617f8237bb407cb653 Mon Sep 17 00:00:00 2001 From: Yuriy Budiyev Date: Fri, 22 Sep 2017 14:02:54 +0300 Subject: [PATCH] Dev --- src/main/java/com/budiyev/android/codescanner/CodeScanner.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/budiyev/android/codescanner/CodeScanner.java b/src/main/java/com/budiyev/android/codescanner/CodeScanner.java index 035de88..5bb45a3 100644 --- a/src/main/java/com/budiyev/android/codescanner/CodeScanner.java +++ b/src/main/java/com/budiyev/android/codescanner/CodeScanner.java @@ -628,6 +628,9 @@ private FinishInitializationTask(@NonNull Point frameSize) { @Override public void run() { + if (!mInitialized) { + return; + } mScannerView.setFrameSize(mFrameSize); mScannerView.setCodeScanner(CodeScanner.this); startPreview();