diff options
author | desperateCoder <echotodevnull@gmail.com> | 2020-03-31 13:35:10 +0300 |
---|---|---|
committer | desperateCoder <echotodevnull@gmail.com> | 2020-03-31 13:35:10 +0300 |
commit | 2c417971735402bdf9fa46f6084486f83dbeef84 (patch) | |
tree | d12144cc36cae400ce2c3b4da203c847bb53eebf /app/src/main/java/it/niedermann/nextcloud/deck/ui/helper/dnd/CrossTabDragAndDrop.java | |
parent | 1f9523ea6ec8b9b155ae3d1745a4b47aaf7deddd (diff) |
remove listener on drop
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/ui/helper/dnd/CrossTabDragAndDrop.java')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/helper/dnd/CrossTabDragAndDrop.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/helper/dnd/CrossTabDragAndDrop.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/helper/dnd/CrossTabDragAndDrop.java index 467f46cd5..54a2b9508 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/helper/dnd/CrossTabDragAndDrop.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/helper/dnd/CrossTabDragAndDrop.java @@ -114,6 +114,7 @@ public class CrossTabDragAndDrop< break; } case DragEvent.ACTION_DROP: { + draggedItemLocalState.getRecyclerView().removeOnChildAttachStateChangeListener(draggedItemLocalState.getInsertedListener()); SCROLL_HELPER.stopScroll(); // FIXME Fires sometimes BEFORE OnChildAttachStateChangeListener draggedView.setVisibility(View.VISIBLE); |