From 2caa1024d98229440d126f915732b37ac01b19fb Mon Sep 17 00:00:00 2001 From: florent champigny Date: Tue, 21 Feb 2017 16:32:52 +0100 Subject: [PATCH] updated sample --- .../camerafragment/internal/ui/BaseAnncaFragment.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/camerafragment/src/main/java/com/github/florent37/camerafragment/internal/ui/BaseAnncaFragment.java b/camerafragment/src/main/java/com/github/florent37/camerafragment/internal/ui/BaseAnncaFragment.java index c12c606..7ccef8a 100644 --- a/camerafragment/src/main/java/com/github/florent37/camerafragment/internal/ui/BaseAnncaFragment.java +++ b/camerafragment/src/main/java/com/github/florent37/camerafragment/internal/ui/BaseAnncaFragment.java @@ -424,6 +424,10 @@ public abstract class BaseAnncaFragment extends Fragment implements Ca onCameraTypeFrontBackChanged(); this.cameraController.switchCamera(cameraFace); + + if (cameraFragmentControlsListener != null) { + cameraFragmentControlsListener.unLockControls(); + } } protected void setCameraTypeFrontBack(@Configuration.CameraFace int cameraFace) {