diff options
| author | 2016-10-13 12:24:16 +0900 | |
|---|---|---|
| committer | 2016-10-13 03:28:16 +0000 | |
| commit | 22bd36448e342ed86fbb60f9465cfdf1ba1c0f6c (patch) | |
| tree | 8cd460e2d8269597b25a5a05425b8fb5d7716445 | |
| parent | fce3b764523c94e4b6fdeffa88b4773fd816d5df (diff) | |
DO NOT MERGE) ExifInterface: Provide backward compatibility
ExifInterface.saveAttribute() didn't throw UnsupportedOperationException
before. Use IOException instead of UnsupportedOperationException for
backward compatibility.
Bug: 30936376, Bug: 32068647, Bug: 31319086
Change-Id: Iacc7b4d91d49edd7bece8f2e738a633a91025eca
| -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 d51dbda38dec..532368ff2a40 100644 --- a/media/java/android/media/ExifInterface.java +++ b/media/java/android/media/ExifInterface.java @@ -1367,8 +1367,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(); |