From e7730bc71038c584eb212017ed67f27e79a3b224 Mon Sep 17 00:00:00 2001 From: Dylan McIntyre Date: Fri, 20 Jan 2017 15:05:24 -0500 Subject: [PATCH] Fix front facing pics --- camerakit/src/main/java/com/wonderkiln/camerakit/Camera2.java | 2 +- demo/src/main/res/layout/activity_main.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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" />