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

Commit be39140d authored by Annie Chin's avatar Annie Chin Committed by Android (Google) Code Review
Browse files

Merge "Null-check mEvaluator onDestroy()" into ub-calculator-euler

parents f36ce923 1838cf7d
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(