Fix spring overscroll when there's a min scroll
Test: clear app recent apps, open Calculator, open Clock, quick switch to Calculator and see no jump Bug: 154815348 Change-Id: I6289d43efe5d850cb2fd807d15115c5ce38c16dd
This commit is contained in:
@@ -1068,7 +1068,7 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
|
||||
private int getSpringOverScroll(int amount) {
|
||||
if (mScroller.isSpringing()) {
|
||||
return amount < 0
|
||||
? mScroller.getCurrPos()
|
||||
? mScroller.getCurrPos() - mMinScroll
|
||||
: Math.max(0, mScroller.getCurrPos() - mMaxScroll);
|
||||
} else {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user