diff --git a/camerakit/src/main/java/com/wonderkiln/camerakit/Camera2.java b/camerakit/src/main/java/com/wonderkiln/camerakit/Camera2.java index acc765f5..949a223e 100644 --- a/camerakit/src/main/java/com/wonderkiln/camerakit/Camera2.java +++ b/camerakit/src/main/java/com/wonderkiln/camerakit/Camera2.java @@ -166,7 +166,7 @@ public class Camera2 extends CameraViewImpl { @Override void capturePicture() { - if (mFacing == Constants.FACING_BACK) { + if (mFacing == INTERNAL_FACINGS.get(Constants.FACING_BACK)) { lockFocus(); } else { captureStillPicture(); diff --git a/demo/src/main/res/layout/activity_main.xml b/demo/src/main/res/layout/activity_main.xml index c1743757..3dac1a19 100644 --- a/demo/src/main/res/layout/activity_main.xml +++ b/demo/src/main/res/layout/activity_main.xml @@ -18,7 +18,7 @@ android:layout_width="match_parent" android:layout_height="400dp" android:layout_gravity="center_horizontal" - app:ckFacing="back" /> + app:ckFacing="front" />