diff options
| author | zhuw <zhuw@codeaurora.org> | 2018-06-13 10:40:13 +0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-06-13 19:05:24 -0700 |
| commit | 1730a10e40ee518902cdcbdd990d22a801872de1 (patch) | |
| tree | ac5bd80fb1460ecf79c26b9bcbbe3121952256fe /src/com/android/camera/CaptureModule.java | |
| parent | 24a4a56411b7c0c1276db521a98c8169adacf767 (diff) | |
Fix force close when init camera info on P
Use camera service instead of hardware.camera
to get camera info
Change-Id: I2837660a13b674a076006b0f6ecce603967e62ca
Diffstat (limited to 'src/com/android/camera/CaptureModule.java')
| -rwxr-xr-x | src/com/android/camera/CaptureModule.java | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index 4ce35dca1..e76a0711e 100755 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -5940,7 +5940,6 @@ public class CaptureModule implements CameraModule, PhotoController, if (bitmap != null) { // MetadataRetriever already rotates the thumbnail. We should rotate // it to match the UI orientation (and mirror if it is front-facing camera). - Camera.CameraInfo[] info = CameraHolder.instance().getCameraInfo(); boolean mirror = mPostProcessor.isSelfieMirrorOn(); bitmap = CameraUtil.rotateAndMirror(bitmap, 0, mirror); } |
