diff --git a/app/src/org/commcare/activities/components/ImageCaptureProcessing.java b/app/src/org/commcare/activities/components/ImageCaptureProcessing.java index 6f012311c..6372656a3 100644 --- a/app/src/org/commcare/activities/components/ImageCaptureProcessing.java +++ b/app/src/org/commcare/activities/components/ImageCaptureProcessing.java @@ -36,6 +36,7 @@ public class ImageCaptureProcessing { * @return A pair containing raw image and scaled imagePath. The first entry is the raw image * while the second one is path to scaled image. */ + @SuppressLint("ExifInterface") private static Pair moveAndScaleImage(File originalImage, boolean shouldScale, String instanceFolder, FormEntryActivity formEntryActivity) throws IOException { @@ -84,6 +85,7 @@ private static Pair moveAndScaleImage(File originalImage, boolean return new Pair<>(rawImageFile, finalFilePath); } + @SuppressLint("ExifInterface") private static File makeRawCopy(File originalImage, String instanceFolder, String imageFilename) throws IOException { String rawDirPath = getRawDirectoryPath(instanceFolder); @@ -209,6 +211,7 @@ private static void processImageGivenFilePath(FormEntryActivity activity, String } } + @SuppressLint("ExifInterface") private static boolean scaleAndSaveImage(File originalImage, boolean shouldScale, String instanceFolder, FormEntryActivity activity) throws IOException { Pair rawImageAndScaledPath = moveAndScaleImage(originalImage, shouldScale, instanceFolder, activity);