summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xassets/dependency.json5
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java1
-rwxr-xr-xsrc/com/android/camera/imageprocessor/PostProcessor.java1
3 files changed, 7 insertions, 0 deletions
diff --git a/assets/dependency.json b/assets/dependency.json
index 7402d4fe4..33a901207 100755
--- a/assets/dependency.json
+++ b/assets/dependency.json
@@ -161,5 +161,10 @@
"pref_camera2_manual_exp_key":"off",
"pref_camera2_selfiemirror_key":"off"},
"0":{}
+ },
+ "pref_camera2_saveraw_key":
+ {
+ "enable":{"pref_camera2_longshot_key":"off"},
+ "disable":{}
}
}
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index 5864a9193..88e599d14 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -2756,6 +2756,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);
diff --git a/src/com/android/camera/imageprocessor/PostProcessor.java b/src/com/android/camera/imageprocessor/PostProcessor.java
index 6eabe9c76..5756b291e 100755
--- a/src/com/android/camera/imageprocessor/PostProcessor.java
+++ b/src/com/android/camera/imageprocessor/PostProcessor.java
@@ -629,6 +629,7 @@ public class PostProcessor{
PhotoModule.NamedImages.NamedEntity name = mNamedImages.getNextNameEntity();
String title = (name == null) ? null : name.title;
mActivity.getMediaSaveService().addRawImage(data, title, "raw");
+ image.close();
}
enum STATUS {