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

Commit 36960fad authored by Leon Scroggins III's avatar Leon Scroggins III Committed by Android (Google) Code Review
Browse files

Merge "Decoder only returns true on complete success." into lmp-mr1-dev

parents 4329f15b 14494262
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -315,7 +315,8 @@ static jobject doDecode(JNIEnv* env, SkStreamRewindable* stream, jobject padding
    }

    SkBitmap decodingBitmap;
    if (!decoder->decode(stream, &decodingBitmap, prefColorType, decodeMode)) {
    if (decoder->decode(stream, &decodingBitmap, prefColorType, decodeMode)
                != SkImageDecoder::kSuccess) {
        return nullObjectReturn("decoder->decode returned false");
    }