Fixing onPageBeginTransition not being called when scrolling overlay

Bug: 33693546
Change-Id: If212a196648fbb2c725ca4800a157ec24f278ca8
This commit is contained in:
Sunny Goyal
2017-01-03 14:55:47 -08:00
parent bf8a265deb
commit 76dbf6fafd
2 changed files with 4 additions and 5 deletions
+2 -4
View File
@@ -1386,12 +1386,10 @@ public class Workspace extends PagedView
// it's own settling, and every gesture to the overlay should be self-contained and start
// from 0, so we zero it out here.
if (isScrollingOverlay()) {
int finalScroll = mIsRtl ? mMaxScrollX : 0;
// We reset mWasInOverscroll so that PagedView doesn't zero out the overscroll
// interaction when we call scrollTo.
// interaction when we call snapToPageImmediately.
mWasInOverscroll = false;
scrollTo(finalScroll, getScrollY());
snapToPageImmediately(0);
} else {
super.snapToDestination();
}