Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ba06557 authored by Fabian Kozynski's avatar Fabian Kozynski
Browse files

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
parent 96c7d236
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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()) {