diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-05-17 14:07:45 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-05-17 14:07:45 +0300 |
commit | 692160767de710f1a8fe2bee4981056c2f831cc3 (patch) | |
tree | 96747a015ba4c851e6cac593f02b55c90c12a2a7 /app/src/main/java/it/niedermann/nextcloud/deck/ui/stack | |
parent | 887a3a5c94f81a1afae0b593a785f36e50d26faf (diff) |
Fix #497 Share link to cards - Requires deck server ≥ 1.0.0
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 | 12 |
1 files changed, 11 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 2bc2888ae..942310199 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 @@ -76,7 +76,17 @@ public class StackFragment extends BrandedFragment implements DragAndDropTab<Car syncManager = new SyncManager(activity); - adapter = new CardAdapter(requireContext(), getChildFragmentManager(), mainViewModel.getCurrentAccount(), mainViewModel.getCurrentBoardLocalId(), stackId, mainViewModel.currentBoardHasEditPermission(), syncManager, this, (requireActivity() instanceof SelectCardListener) ? (SelectCardListener) requireActivity() : null); + adapter = new CardAdapter( + requireContext(), + getChildFragmentManager(), + mainViewModel.getCurrentAccount(), + mainViewModel.getCurrentBoardLocalId(), + mainViewModel.getCurrentBoardRemoteId(), + stackId, + mainViewModel.currentBoardHasEditPermission(), + syncManager, + this, + (requireActivity() instanceof SelectCardListener) ? (SelectCardListener) requireActivity() : null); binding.recyclerView.setAdapter(adapter); if (onScrollListener != null) { |