From 06eca78ae2e8ff15993fa78eade23b14cd1bbe00 Mon Sep 17 00:00:00 2001 From: Yuriy Budiyev Date: Wed, 20 Dec 2017 17:53:02 +0300 Subject: [PATCH] Dev --- .../java/com/budiyev/android/codescanner/CodeScanner.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/budiyev/android/codescanner/CodeScanner.java b/src/main/java/com/budiyev/android/codescanner/CodeScanner.java index 8e4eeb6..808ec53 100644 --- a/src/main/java/com/budiyev/android/codescanner/CodeScanner.java +++ b/src/main/java/com/budiyev/android/codescanner/CodeScanner.java @@ -641,16 +641,12 @@ public void run() { if (errorCallback != null) { errorCallback.onError(e); } else { - if (e instanceof RuntimeException) { - throw (RuntimeException) e; - } else { - throw new CodeScannerException(e); - } + throw e; } } } - private void initialize() throws Exception { + private void initialize() { Camera camera = null; Camera.CameraInfo cameraInfo = new Camera.CameraInfo(); int cameraId = mCameraId;