diff --git a/astrid/src/com/todoroo/astrid/ui/DraggableListView.java b/astrid/src/com/todoroo/astrid/ui/DraggableListView.java index 9f2ba4c38..cb454c67b 100644 --- a/astrid/src/com/todoroo/astrid/ui/DraggableListView.java +++ b/astrid/src/com/todoroo/astrid/ui/DraggableListView.java @@ -254,7 +254,8 @@ public class DraggableListView extends ListView { if (dragThread != null && mClickListener != null) { dragThread.interrupt(); dragThread = null; - mClickListener.onClick(viewAtPosition()); + if (action == MotionEvent.ACTION_UP) + mClickListener.onClick(viewAtPosition()); } else if (mSwipeListener != null && @@ -482,7 +483,6 @@ public class DraggableListView extends ListView { unExpandViews(false); if (mDragView != null) { - System.err.println("removing view"); WindowManager wm = (WindowManager) getContext().getSystemService( Context.WINDOW_SERVICE); wm.removeView(mDragView);