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

Commit afc967da authored by Mark Renouf's avatar Mark Renouf
Browse files

Fix runaway scroll capture

Empty result was not being considered an "edge", preventing
the loop from ever exiting.

Bug: 180390325
Test: manual
Change-Id: Ia87c7a5cedc0acda671b9fdef924140c9be01f77
parent d9b1c748
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -253,7 +253,7 @@ public class ScrollCaptureController implements OnComputeInternalInsetsListener
                && result.captured.height() < result.requested.height();
        boolean finish = false;

        if (partialResult) {
        if (partialResult || emptyResult) {
            // Potentially reached a vertical boundary. Extend in the other direction.
            switch (mDirection) {
                case DOWN: