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

Commit 48811160 authored by Zhijun He's avatar Zhijun He Committed by Android (Google) Code Review
Browse files

Merge "ImageReader: fix the 0 crop rect size issue" into klp-dev

parents 8a7a93e2 9e6d073a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -737,7 +737,7 @@ static jint ImageReader_imageSetup(JNIEnv* env, jobject thiz,
    int outputHeight = buffer->height;

    // Correct width/height when crop is set.
    if (buffer->crop.isValid()) {
    if (!buffer->crop.isEmpty()) {
        outputWidth = buffer->crop.getWidth();
        outputHeight = buffer->crop.getHeight();
    }