diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-03-30 17:42:58 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-03-30 17:42:58 +0300 |
commit | 94e9790ee97942ee83d3a810d66963831aefc75e (patch) | |
tree | 6d4dae9dc3f657fb3bf4d23e2e387c8f83d2bb3a /app/src/main/java/it/niedermann/nextcloud/deck/ui/stack | |
parent | f7ff6bb2f5b109929a19d5cabd96e169ab8db66d (diff) |
Generify Drag and Drop
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/ui/stack')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/stack/StackFragment.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/stack/StackFragment.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/stack/StackFragment.java index 212e4d937..1c3a5548d 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/stack/StackFragment.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/stack/StackFragment.java @@ -19,8 +19,9 @@ import it.niedermann.nextcloud.deck.model.full.FullCard; import it.niedermann.nextcloud.deck.persistence.sync.SyncManager; import it.niedermann.nextcloud.deck.ui.card.CardAdapter; import it.niedermann.nextcloud.deck.ui.card.CardAdapter.SelectCardListener; +import it.niedermann.nextcloud.deck.ui.helper.dnd.DragAndDropTab; -public class StackFragment extends Fragment { +public class StackFragment extends Fragment implements DragAndDropTab<CardAdapter> { private static final String KEY_BOARD_ID = "boardId"; private static final String KEY_STACK_ID = "stackId"; @@ -121,10 +122,12 @@ public class StackFragment extends Fragment { return binding.getRoot(); } + @Override public CardAdapter getAdapter() { return adapter; } + @Override public RecyclerView getRecyclerView() { return binding.recyclerView; } |