DO NOT MERGE) ExifInterface: Provide backward compatibility am: 7ce9243087 am: bb800841ca

am: 016c5889bc

Change-Id: I03faa540856ba74aff431e287cecc5995b6037bd
This commit is contained in:
Sungsoo
2016-10-13 22:07:20 +00:00
committed by android-build-merger

View File

@@ -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();