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

Commit 2839c20c authored by Jon Miranda's avatar Jon Miranda
Browse files

Fix NPE in FlingToDeleteHelper

Bug: 171543835
Test: not able to repo bug, but this prevents the NPE
Change-Id: I153dd0665705b2f5fd7f46786e815ba57dec4720
parent 13d5079e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -65,6 +65,9 @@ public class FlingToDeleteHelper {
    }

    public Runnable getFlingAnimation(DropTarget.DragObject dragObject, DragOptions options) {
        if (options == null) {
            return null;
        }
        PointF vel = isFlingingToDelete();
        options.isFlingToDelete = vel != null;
        if (!options.isFlingToDelete) {