Skip to content

Commit

Permalink
SuppressLint
Browse files Browse the repository at this point in the history
  • Loading branch information
melmathari committed Nov 25, 2024
1 parent 4e512c3 commit 3b8e250
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/org/commcare/utils/FileUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 3b8e250

Please sign in to comment.