Merge "Fix restoring vertical scroll after horizontal." into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-06-11 19:18:16 +00:00
committed by Android (Google) Code Review

View File

@@ -3100,7 +3100,7 @@ public class ChooserActivity extends ResolverActivity implements
setVerticalScrollEnabled(false);
}
} else if (state == ViewPager.SCROLL_STATE_IDLE) {
if (mScrollStatus == SCROLL_STATUS_SCROLLING_VERTICAL) {
if (mScrollStatus == SCROLL_STATUS_SCROLLING_HORIZONTAL) {
mScrollStatus = SCROLL_STATUS_IDLE;
setVerticalScrollEnabled(true);
}