From 1020a93fa36ac4470ef426d2d4de0070e5fca881 Mon Sep 17 00:00:00 2001 From: aletheios Date: Sat, 31 May 2014 18:44:32 +0200 Subject: [PATCH] Bugfix #3705: params.setRecordingHint(true) breaks camera preview on Samsung Galaxy S2 --- modules/java/generator/src/java/android+JavaCameraView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/java/generator/src/java/android+JavaCameraView.java b/modules/java/generator/src/java/android+JavaCameraView.java index c29ba2b6f0..95bdc01f4a 100644 --- a/modules/java/generator/src/java/android+JavaCameraView.java +++ b/modules/java/generator/src/java/android+JavaCameraView.java @@ -146,7 +146,7 @@ public class JavaCameraView extends CameraBridgeViewBase implements PreviewCallb Log.d(TAG, "Set preview size to " + Integer.valueOf((int)frameSize.width) + "x" + Integer.valueOf((int)frameSize.height)); params.setPreviewSize((int)frameSize.width, (int)frameSize.height); - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH && !android.os.Build.MODEL.equals("GT-I9100")) params.setRecordingHint(true); List FocusModes = params.getSupportedFocusModes();