summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Sungsoo <sungsoo@google.com> 2016-10-13 21:56:55 +0000
committer android-build-merger <android-build-merger@google.com> 2016-10-13 21:56:55 +0000
commitbb800841cab3ed9cea5deeae3137f04c55952086 (patch)
tree4099ee8f421adc02ccf1b0baebba7bbb02824c0b
parent09edfde07453d4ab0bafbacf1917c7be8eaf143b (diff)
parent7ce9243087b04bce719e1f3d10a14b9b26b8ea81 (diff)
DO NOT MERGE) ExifInterface: Provide backward compatibility
am: 7ce9243087 Change-Id: I3d46cccc578160d7da5ff81e0caa09a52a17e9eb
-rw-r--r--media/java/android/media/ExifInterface.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/media/java/android/media/ExifInterface.java b/media/java/android/media/ExifInterface.java
index a2ccdc855988..e3beb4a22b6e 100644
--- a/media/java/android/media/ExifInterface.java
+++ b/media/java/android/media/ExifInterface.java
@@ -1372,8 +1372,7 @@ public class ExifInterface {
*/
public void saveAttributes() throws IOException {
if (!mIsSupportedFile) {
- throw new UnsupportedOperationException(
- "ExifInterface only supports saving attributes on JPEG formats.");
+ throw new IOException("ExifInterface only supports saving attributes on JPEG formats.");
}
// Keep the thumbnail in memory
mThumbnailBytes = getThumbnail();