diff options
author | Wu-cheng Li <wuchengli@google.com> | 2010-09-15 14:10:31 -0700 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2010-09-15 14:10:49 -0700 |
commit | c97d23826a28dd725951eccb62651244f9fb8228 (patch) | |
tree | 8a978ebd4b6743e256b3a119d299186bea85c2ef /src/com/android/camera/Util.java | |
parent | 50ab7fd18e8a631237f7546cd25af974e3e30dcb (diff) | |
download | LegacyCamera-c97d23826a28dd725951eccb62651244f9fb8228.zip LegacyCamera-c97d23826a28dd725951eccb62651244f9fb8228.tar.gz LegacyCamera-c97d23826a28dd725951eccb62651244f9fb8228.tar.bz2 |
Update the code due to API change.
bug:3001395
bug:3001399
Change-Id: Ie1347ed28aa72a3ec637867dc2226c60ef2dbd6c
Diffstat (limited to 'src/com/android/camera/Util.java')
-rw-r--r-- | src/com/android/camera/Util.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/Util.java b/src/com/android/camera/Util.java index c5de1f8..adf9152 100644 --- a/src/com/android/camera/Util.java +++ b/src/com/android/camera/Util.java @@ -298,7 +298,7 @@ public class Util { new android.hardware.Camera.CameraInfo(); android.hardware.Camera.getCameraInfo(cameraId, info); int degrees = getDisplayRotation(activity); - int result = (info.mOrientation - degrees + 360) % 360; + int result = (info.orientation - degrees + 360) % 360; camera.setDisplayOrientation(result); } } |