diff options
author | junjiez <junjiez@codeaurora.org> | 2018-12-26 10:56:15 +0800 |
---|---|---|
committer | junjiez <junjiez@codeaurora.org> | 2018-12-26 10:56:15 +0800 |
commit | 77c56c9c8e8a6d4e98202fda8b9c06add2f09659 (patch) | |
tree | f910f3c390748348f002cdaccb52f9ea2351b603 /src/com/android/camera/CaptureModule.java | |
parent | c48104739d7221ff3c617f34f2d6c63be5888288 (diff) | |
download | android_packages_apps_Snap-77c56c9c8e8a6d4e98202fda8b9c06add2f09659.tar.gz android_packages_apps_Snap-77c56c9c8e8a6d4e98202fda8b9c06add2f09659.tar.bz2 android_packages_apps_Snap-77c56c9c8e8a6d4e98202fda8b9c06add2f09659.zip |
SnapdraongCamera:Fix RAW capture
1.close raw image after it's saved to
avoid image leak.
2.Disable longshot when RAW is enabled.
Change-Id: I8e5896e1dc9ba497fbffe95e694e02e7b8abc289
CRs-Fixed: 2372398
Diffstat (limited to 'src/com/android/camera/CaptureModule.java')
-rwxr-xr-x | src/com/android/camera/CaptureModule.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index b2ebc34be..355247fb1 100755 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -2745,6 +2745,7 @@ public class CaptureModule implements CameraModule, PhotoController, if (image.getFormat() == ImageFormat.RAW10) { mActivity.getMediaSaveService().addRawImage(bytes, title, "raw"); + image.close(); } else { ExifInterface exif = Exif.getExif(bytes); int orientation = Exif.getOrientation(exif); |