mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Fixing onPageBeginTransition not being called when scrolling overlay
Bug: 33693546 Change-Id: If212a196648fbb2c725ca4800a157ec24f278ca8
This commit is contained in:
@@ -563,7 +563,7 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
|
||||
protected boolean computeScrollHelper(boolean shouldInvalidate) {
|
||||
if (mScroller.computeScrollOffset()) {
|
||||
// Don't bother scrolling if the page does not need to be moved
|
||||
if (getScrollX() != mScroller.getCurrX()
|
||||
if (getUnboundedScrollX() != mScroller.getCurrX()
|
||||
|| getScrollY() != mScroller.getCurrY()) {
|
||||
float scaleX = mFreeScroll ? getScaleX() : 1f;
|
||||
int scrollX = (int) (mScroller.getCurrX() * (1 / scaleX));
|
||||
@@ -1945,6 +1945,7 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
|
||||
// Trigger a compute() to finish switching pages if necessary
|
||||
if (immediate) {
|
||||
computeScroll();
|
||||
pageEndTransition();
|
||||
}
|
||||
|
||||
invalidate();
|
||||
|
||||
Reference in New Issue
Block a user