diff options
| author | 2016-10-13 21:56:55 +0000 | |
|---|---|---|
| committer | 2016-10-13 21:56:55 +0000 | |
| commit | bb800841cab3ed9cea5deeae3137f04c55952086 (patch) | |
| tree | 4099ee8f421adc02ccf1b0baebba7bbb02824c0b | |
| parent | 09edfde07453d4ab0bafbacf1917c7be8eaf143b (diff) | |
| parent | 7ce9243087b04bce719e1f3d10a14b9b26b8ea81 (diff) | |
DO NOT MERGE) ExifInterface: Provide backward compatibility
am: 7ce9243087
Change-Id: I3d46cccc578160d7da5ff81e0caa09a52a17e9eb
| -rw-r--r-- | media/java/android/media/ExifInterface.java | 3 |
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(); |