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

Commit 0af64b1a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ExifInterface: Provide backward compatibility"

parents fcf2ad4b da64f61b
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1554,14 +1554,16 @@ public class ExifInterface {
     * copying all the data from one file to another and deleting the old file and renaming the
     * other. It's best to use {@link #setAttribute(String,String)} to set all attributes to write
     * and make a single call rather than multiple calls for each attribute.
     * <p>
     * This method is only supported for JPEG files.
     * </p>
     */
    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.");
        }