DO NOT MERGE) ExifInterface: Provide backward compatibility

am: 87a9ac70c3

Change-Id: I6639c6763ee1f7d83d03cc6d5fa11cbf1516e7cc
This commit is contained in:
Sungsoo
2016-10-13 21:54:25 +00:00
committed by android-build-merger

View File

@@ -1367,8 +1367,7 @@ public class ExifInterface {
*/ */
public void saveAttributes() throws IOException { public void saveAttributes() throws IOException {
if (!mIsSupportedFile) { if (!mIsSupportedFile) {
throw new UnsupportedOperationException( throw new IOException("ExifInterface only supports saving attributes on JPEG formats.");
"ExifInterface only supports saving attributes on JPEG formats.");
} }
// Keep the thumbnail in memory // Keep the thumbnail in memory
mThumbnailBytes = getThumbnail(); mThumbnailBytes = getThumbnail();