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

Commit c2ae2b12 authored by Mark Renouf's avatar Mark Renouf Committed by Android (Google) Code Review
Browse files

Merge "Fix off-by-one error in scroll capture page limit check"

parents 35ff9146 a465451b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ public class ScrollCaptureController {
                            mPicture = stackBelow(mPicture, result.image, result.captured.width(),
                                    result.captured.height());
                        }
                        if (emptyFrame || mFrameCount > MAX_PAGES
                        if (emptyFrame || mFrameCount >= MAX_PAGES
                                || requestRect.bottom > MAX_HEIGHT) {
                            Uri uri = null;
                            if (mPicture != null) {