From a021b1fe809a6299eac0803be5e3e6dc3e1278d5 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 16 Jun 2016 14:01:05 +0200 Subject: [PATCH] make sure to disable the default shutter sound explicitly --- app/src/main/java/com/simplemobiletools/camera/Preview.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/simplemobiletools/camera/Preview.java b/app/src/main/java/com/simplemobiletools/camera/Preview.java index 3a7e5b6d..116c1f54 100644 --- a/app/src/main/java/com/simplemobiletools/camera/Preview.java +++ b/app/src/main/java/com/simplemobiletools/camera/Preview.java @@ -175,6 +175,9 @@ public class Preview extends ViewGroup implements SurfaceHolder.Callback, View.O parameters.setRotation(rotation % 360); MediaPlayer.create(getContext(), R.raw.camera_shutter).start(); + if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR1) { + camera.enableShutterSound(false); + } camera.setParameters(parameters); camera.takePicture(null, null, takePictureCallback); }