Loading media/java/android/media/ExifInterface.java +2 −5 Original line number Diff line number Diff line Loading @@ -1557,16 +1557,13 @@ public class ExifInterface { * <p> * This method is only supported for JPEG files. * </p> * * @throws UnsupportedOperationException If this method is called with unsupported files. */ public void saveAttributes() throws IOException { if (!mIsSupportedFile || mIsRaw) { throw new UnsupportedOperationException( "ExifInterface only supports saving attributes on JPEG formats."); throw new IOException("ExifInterface only supports saving attributes on JPEG formats."); } if (mIsInputStream || (mSeekableFileDescriptor == null && mFilename == null)) { throw new UnsupportedOperationException( throw new IOException( "ExifInterface does not support saving attributes for the current input."); } Loading Loading
media/java/android/media/ExifInterface.java +2 −5 Original line number Diff line number Diff line Loading @@ -1557,16 +1557,13 @@ public class ExifInterface { * <p> * This method is only supported for JPEG files. * </p> * * @throws UnsupportedOperationException If this method is called with unsupported files. */ public void saveAttributes() throws IOException { if (!mIsSupportedFile || mIsRaw) { throw new UnsupportedOperationException( "ExifInterface only supports saving attributes on JPEG formats."); throw new IOException("ExifInterface only supports saving attributes on JPEG formats."); } if (mIsInputStream || (mSeekableFileDescriptor == null && mFilename == null)) { throw new UnsupportedOperationException( throw new IOException( "ExifInterface does not support saving attributes for the current input."); } Loading