Fix front facing pics

pull/1/head
Dylan McIntyre 8 years ago
parent 7a04e1b899
commit e7730bc710
  1. 2
      camerakit/src/main/java/com/wonderkiln/camerakit/Camera2.java
  2. 2
      demo/src/main/res/layout/activity_main.xml

@ -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();

@ -18,7 +18,7 @@
android:layout_width="match_parent"
android:layout_height="400dp"
android:layout_gravity="center_horizontal"
app:ckFacing="back" />
app:ckFacing="front" />
<LinearLayout
android:layout_width="match_parent"

Loading…
Cancel
Save