Skip to content

Commit

Permalink
SuppressLint imageCaptureProcessing.java
Browse files Browse the repository at this point in the history
  • Loading branch information
melmathari committed Nov 25, 2024
1 parent 3b8e250 commit b981ce8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<File, String> moveAndScaleImage(File originalImage, boolean shouldScale,
String instanceFolder,
FormEntryActivity formEntryActivity) throws IOException {
Expand Down Expand Up @@ -84,6 +85,7 @@ private static Pair<File, String> 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);
Expand Down Expand Up @@ -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<File, String> rawImageAndScaledPath = moveAndScaleImage(originalImage, shouldScale, instanceFolder, activity);
Expand Down

0 comments on commit b981ce8

Please sign in to comment.