From 70b7bca711b8a21a4e08cec47efe2cc5c8dee247 Mon Sep 17 00:00:00 2001 From: Ferdian Sulaiman Date: Fri, 22 Jun 2018 11:21:05 +0700 Subject: [PATCH] set display orientation --- .../src/main/api14/com/google/android/cameraview/Camera1.java | 1 + 1 file changed, 1 insertion(+) diff --git a/library/src/main/api14/com/google/android/cameraview/Camera1.java b/library/src/main/api14/com/google/android/cameraview/Camera1.java index 0f92ac50..32242265 100644 --- a/library/src/main/api14/com/google/android/cameraview/Camera1.java +++ b/library/src/main/api14/com/google/android/cameraview/Camera1.java @@ -92,6 +92,7 @@ boolean start() { setUpPreview(); } mShowingPreview = true; + mCamera.setDisplayOrientation(90); mCamera.startPreview(); return true; }