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

Commit 6ef5b8ab authored by Samuel Fufa's avatar Samuel Fufa
Browse files

Add nullcheck for VelocityTracker

Bug:134712476
Change-Id:I7834507a4e9aadf4d89c0ed6f3eba812df7425cd
parent f5197fce
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -106,6 +106,7 @@ public class FlingToDeleteHelper {
     * @return the vector at which the item was flung, or null if no fling was detected.
     * @return the vector at which the item was flung, or null if no fling was detected.
     */
     */
    private PointF isFlingingToDelete() {
    private PointF isFlingingToDelete() {
        if (mVelocityTracker == null) return null;
        if (mDropTarget == null) {
        if (mDropTarget == null) {
            mDropTarget = (ButtonDropTarget) mLauncher.findViewById(R.id.delete_target_text);
            mDropTarget = (ButtonDropTarget) mLauncher.findViewById(R.id.delete_target_text);
        }
        }