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

Commit 70a4d6f7 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Guard aginst another NPE" into rvc-qpr-dev am: 3f7fa9eb

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12512322

Change-Id: Ifb48dacc52190843c9dfac3a885ea150d8c71721
parents dc89811b 3f7fa9eb
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()) {