From 919d8da2fe8cdd829d01ad5082c3f7325f5dac07 Mon Sep 17 00:00:00 2001 From: Mido Date: Mon, 25 Nov 2024 13:09:19 +0100 Subject: [PATCH] SuppressLint --- app/src/org/commcare/utils/FileUtil.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/org/commcare/utils/FileUtil.java b/app/src/org/commcare/utils/FileUtil.java index 3128f0e45..1ff218873 100644 --- a/app/src/org/commcare/utils/FileUtil.java +++ b/app/src/org/commcare/utils/FileUtil.java @@ -867,6 +867,7 @@ public static boolean isFileTooLargeToUpload(ContentResolver contentResolver, Ur } } + @SuppressLint("ExifInterface") public static void copyFileWithExifData(File sourceFile, File destFile) throws IOException { // First copy the file normally copyFile(sourceFile, destFile); @@ -875,6 +876,7 @@ public static void copyFileWithExifData(File sourceFile, File destFile) throws I copyExifData(sourceFile.getAbsolutePath(), destFile.getAbsolutePath()); } + @SuppressLint("ExifInterface") public static boolean scaleAndSaveImageWithExif(File sourceFile, File destFile, int maxDimen) throws IOException { // First scale the image boolean scaled = scaleAndSaveImage(sourceFile, destFile.getAbsolutePath(), maxDimen); @@ -887,6 +889,7 @@ public static boolean scaleAndSaveImageWithExif(File sourceFile, File destFile, return scaled; } + @SuppressLint("ExifInterface") private static void copyExifData(String sourcePath, String destPath) throws IOException { ExifInterface source = new ExifInterface(sourcePath); ExifInterface dest = new ExifInterface(destPath);