From ae7910c126d96f9a5d6c763307ce49208dd6e04f Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 2 Mar 2017 10:33:28 -0700 Subject: [PATCH 1/2] Update README with current lib version --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c5c2712b..92c76cf2 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ Try out all the unique features using the CameraKit Demo from the Google Play st Add __CameraKit__ to the dependencies block in your `app` level `build.gradle`: ```groovy -compile 'com.flurgle:camerakit:0.9.12' +compile 'com.flurgle:camerakit:0.9.13' ``` ## Usage From 6fd326c1c2247a23f573bbc507568b527fa05076 Mon Sep 17 00:00:00 2001 From: Andrew Drobyazko Date: Thu, 9 Mar 2017 19:32:19 +0200 Subject: [PATCH 2/2] Fixed issue #14 --- .../src/main/api16/com/flurgle/camerakit/Camera1.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java b/camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java index 0c137ef3..124dae08 100644 --- a/camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java +++ b/camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java @@ -343,11 +343,9 @@ public class Camera1 extends CameraImpl { getCaptureResolution().getWidth(), getCaptureResolution().getHeight() ); - - mCameraParameters.setRotation( - calculateCameraRotation(mDisplayOrientation) - + (mFacing == CameraKit.Constants.FACING_FRONT ? 180 : 0) - ); + int rotation = (calculateCameraRotation(mDisplayOrientation) + + (mFacing == CameraKit.Constants.FACING_FRONT ? 180 : 0) ) % 360; + mCameraParameters.setRotation(rotation); setFocus(mFocus); setFlash(mFlash);