Merge "Guard aginst another NPE" into rvc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3f7fa9eb3a
@@ -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
|
@Override
|
||||||
public void computeScroll() {
|
public void computeScroll() {
|
||||||
if (!mScroller.isFinished() && mScroller.computeScrollOffset()) {
|
if (!mScroller.isFinished() && mScroller.computeScrollOffset()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user