Merge "Revert edge glow effect and restore damped overscroll" into ub-launcher3-dorval-polish
This commit is contained in:
commit
89b5b918f0
4 files changed
+80
-454
No files matched your search
@@ -300,8 +300,7 @@ public class Workspace extends PagedView
|
||||
boolean mScrollInteractionBegan;
|
||||
boolean mStartedSendingScrollEvents;
|
||||
float mLastOverlayScroll = 0;
|
||||
// Total over scrollX in the overlay direction.
|
||||
private int mUnboundedScrollX;
|
||||
|
||||
private boolean mForceDrawAdjacentPages = false;
|
||||
// Total over scrollX in the overlay direction.
|
||||
private float mOverlayTranslation;
|
||||
@@ -1321,18 +1320,10 @@ public class Workspace extends PagedView
|
||||
onOverlayScrollChanged(0);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getUnboundedScrollX() {
|
||||
if (isScrollingOverlay()) {
|
||||
return mUnboundedScrollX;
|
||||
}
|
||||
|
||||
return super.getUnboundedScrollX();
|
||||
}
|
||||
|
||||
private boolean isScrollingOverlay() {
|
||||
return mLauncherOverlay != null &&
|
||||
((mIsRtl && mUnboundedScrollX > mMaxScrollX) || (!mIsRtl && mUnboundedScrollX < 0));
|
||||
((mIsRtl && getUnboundedScrollX() > mMaxScrollX) || (!mIsRtl && getUnboundedScrollX() < 0));
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1351,12 +1342,6 @@ public class Workspace extends PagedView
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void scrollTo(int x, int y) {
|
||||
mUnboundedScrollX = x;
|
||||
super.scrollTo(x, y);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onScrollChanged(int l, int t, int oldl, int oldt) {
|
||||
super.onScrollChanged(l, t, oldl, oldt);
|
||||
@@ -1529,13 +1514,6 @@ public class Workspace extends PagedView
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void getEdgeVerticalPosition(int[] pos) {
|
||||
View child = getChildAt(getPageCount() - 1);
|
||||
pos[0] = child.getTop();
|
||||
pos[1] = child.getBottom();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void notifyPageSwitchListener() {
|
||||
super.notifyPageSwitchListener();
|
||||
|
||||
Reference in new issue
Block a user