diff --git a/zxing-android-embedded/src/com/journeyapps/barcodescanner/CaptureManager.java b/zxing-android-embedded/src/com/journeyapps/barcodescanner/CaptureManager.java index 51599d66d..64d74f123 100644 --- a/zxing-android-embedded/src/com/journeyapps/barcodescanner/CaptureManager.java +++ b/zxing-android-embedded/src/com/journeyapps/barcodescanner/CaptureManager.java @@ -147,13 +147,10 @@ public void initializeFromIntent(Intent intent, Bundle savedInstanceState) { } if(intent != null) { - if (orientationLock == ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED) { - // Only lock the orientation if it's not locked to something else yet - boolean orientationLocked = intent.getBooleanExtra(Intents.Scan.ORIENTATION_LOCKED, true); - - if (orientationLocked) { - lockOrientation(); - } + // Only lock the orientation if it's not locked to something else yet + boolean orientationLocked = intent.getBooleanExtra(Intents.Scan.ORIENTATION_LOCKED, true); + if (orientationLocked) { + lockOrientation(); } if (Intents.Scan.ACTION.equals(intent.getAction())) {