From d303362ac21fb9de40f2f2366cbe7ecaa113dc12 Mon Sep 17 00:00:00 2001 From: Wu-cheng Li Date: Fri, 7 Oct 2011 13:13:54 +0800 Subject: Allow Camera.setDisplayOrientation to be called when preview is active. bug:5422679 Change-Id: I4c936ab00428fc158b5947fe8f10b1028869bbdb --- core/java/android/hardware/Camera.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/java/android') diff --git a/core/java/android/hardware/Camera.java b/core/java/android/hardware/Camera.java index e40de266606c..10ae1549a723 100644 --- a/core/java/android/hardware/Camera.java +++ b/core/java/android/hardware/Camera.java @@ -1007,6 +1007,10 @@ public class Camera { * camera.setDisplayOrientation(result); * } * + * + *

Starting from API level 14, this method can be called when preview is + * active. + * * @param degrees the angle that the picture will be rotated clockwise. * Valid values are 0, 90, 180, and 270. The starting * position is 0 (landscape). -- cgit v1.2.3