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

Commit a0e00f50 authored by Jin Seok Park's avatar Jin Seok Park Committed by android-build-merger
Browse files

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

am: 48dad606

Change-Id: Iba1c71b28bfb2f37939caf157ba41b42903d1149
parents f6791675 48dad606
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;