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

Commit 48dad606 authored by Jin Seok Park's avatar Jin Seok Park Committed by Android (Google) Code Review
Browse files

Merge "ExifInterface: Remove throwing exception" into oc-mr1-dev

parents 1d66ccde d1134789
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -2101,9 +2101,7 @@ public class ExifInterface {
    private int getMimeType(BufferedInputStream in) throws IOException {
        in.mark(SIGNATURE_CHECK_SIZE);
        byte[] signatureCheckBytes = new byte[SIGNATURE_CHECK_SIZE];
        if (in.read(signatureCheckBytes) != SIGNATURE_CHECK_SIZE) {
            throw new EOFException();
        }
        in.read(signatureCheckBytes);
        in.reset();
        if (isJpegFormat(signatureCheckBytes)) {
            return IMAGE_TYPE_JPEG;