Merge "Fix runaway scroll capture" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-02-17 00:13:40 +00:00
committed by Android (Google) Code Review

View File

@@ -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: