diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-03-30 10:29:34 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-03-30 10:29:34 +0300 |
commit | 48d4cd030149047684ae03276d7bd34b4fc1fec0 (patch) | |
tree | 5e212e4ee455783051142ef53942f465f1d19e48 /app/src/main/java/it/niedermann/nextcloud/deck/ui/stack | |
parent | 4b9a6119b65c5d79f0adac6db9a7c7cb9c2fa717 (diff) | |
parent | 3283d4d9be574fdc291b499cb0272d70b0c99624 (diff) |
Merge remote-tracking branch 'origin/refactor-drawer-and-main-and-use-viewpager2' into refactor-drawer-and-main-and-use-viewpager2
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 | 2 |
1 files changed, 2 insertions, 0 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 9c8904479..29bab1fb7 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 @@ -104,6 +104,7 @@ public class StackFragment extends Fragment { binding.emptyContentView.hideDescription(); } + //FIXME: noone needs the outer getStack. having only the inner getFullCardsForStack is totally fine. syncManager.getStack(account.getId(), stackId).observe(getViewLifecycleOwner(), (FullStack stack) -> { if (stack != null) { syncManager.getFullCardsForStack(account.getId(), stack.getLocalId()).observe(getViewLifecycleOwner(), (List<FullCard> cards) -> { @@ -111,6 +112,7 @@ public class StackFragment extends Fragment { if (cards != null && cards.size() > 0) { binding.emptyContentView.setVisibility(View.GONE); adapter.setCardList(cards); + //FIXME: the problem i see is in setCardList. it doesn't really update the UI somehow. // FIXME this is just a workaround for dropping cards in an empty stack (see CrossTabDragAndDrop on ACTION_DROP) if(binding.recyclerView.getChildCount() > 0) { binding.recyclerView.getChildAt(0).setVisibility(View.VISIBLE); |