Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3fc6b8fd authored by Sungsoo's avatar Sungsoo Committed by android-build-merger
Browse files

ExifInterface: Provide backward compatibility am: 2dbe1668 am: bc813cd5 am: 36f64a2f

am: b68d0855

Change-Id: I40df333d3b19911be333e5c466dfe01a3db4bd70
parents f722c821 b68d0855
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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.");
        }