Merge "Guard aginst another NPE" into rvc-qpr-dev

This commit is contained in:
TreeHugger Robot
2020-09-25 15:48:06 +00:00
committed by Android (Google) Code Review

View File

@@ -176,6 +176,16 @@ public class PagedTileLayout extends ViewPager implements QSTileLayout {
}
}
@Override
public void endFakeDrag() {
try {
super.endFakeDrag();
} catch (NullPointerException e) {
// Not sure what's going on. Let's log it
Log.e(TAG, "endFakeDrag called without velocityTracker", e);
}
}
@Override
public void computeScroll() {
if (!mScroller.isFinished() && mScroller.computeScrollOffset()) {