summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Sungsoo <sungsoo@google.com> 2016-10-13 22:07:20 +0000
committer android-build-merger <android-build-merger@google.com> 2016-10-13 22:07:20 +0000
commitd6508621fc7f2a094224f31c976895eebf8b926e (patch)
treeff2385a875de4a82d44a6d6dae4dcfe94b76fbcd
parent5b649ddcc6634c77031122f8de00679336e4581d (diff)
parent016c5889bc8370a894fa1c578902e2d42aa6223d (diff)
DO NOT MERGE) ExifInterface: Provide backward compatibility am: 7ce9243087 am: bb800841ca
am: 016c5889bc Change-Id: I03faa540856ba74aff431e287cecc5995b6037bd
-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();