Guard aginst another NPE

Cannot find what is actually going on. Some reports have the error from
line 165, but some don't. There's no particular repro steps.

Test: build
Fixes: 162801646
Change-Id: Ieff5db9146f95273d3db216834c1e93eed765514
This commit is contained in:
Fabian Kozynski
2020-09-02 10:25:02 -04:00
parent 96c7d2368f
commit 1ba0655731

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()) {