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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user