Merge "Prevent NPE in PagedTileLayout" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c359f87e86
@@ -142,6 +142,9 @@ public class PagedTileLayout extends ViewPager implements QSTileLayout {
|
||||
@Override
|
||||
public void computeScroll() {
|
||||
if (!mScroller.isFinished() && mScroller.computeScrollOffset()) {
|
||||
if (!isFakeDragging()) {
|
||||
beginFakeDrag();
|
||||
}
|
||||
fakeDragBy(getScrollX() - mScroller.getCurrX());
|
||||
// Keep on drawing until the animation has finished.
|
||||
postInvalidateOnAnimation();
|
||||
|
||||
Reference in New Issue
Block a user