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

Commit 1838cf7d authored by Annie Chin's avatar Annie Chin
Browse files

Null-check mEvaluator onDestroy()

Fixes: 34742420
Change-Id: Ia1e99a121855b43fbaec648a0be25e6b40d9b255
parent 33aab393
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -176,10 +176,12 @@ public class HistoryFragment extends Fragment implements DragLayout.DragCallback
            mDragLayout.removeDragCallback(this);
        }

        if (mEvaluator != null) {
            // Note that the view is destroyed when the fragment backstack is popped, so
            // these are essentially called when the DragLayout is closed.
            mEvaluator.cancelNonMain();
        }
    }

    private void initializeController(boolean isResult, boolean isOneLine) {
        mDragController.setDisplayFormula(