Merge "Guard aginst another NPE" into rvc-qpr-dev am: 3f7fa9eb3a am: 70a4d6f738
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12512322 Change-Id: I5c5c95aeb1a095ebbbfa855e6aab50ba60ae6162
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