diff options
author | desperateCoder <echotodevnull@gmail.com> | 2020-04-07 13:29:51 +0300 |
---|---|---|
committer | desperateCoder <echotodevnull@gmail.com> | 2020-04-07 13:29:51 +0300 |
commit | cdc678b9b9072ed181680c36a33f2e6695a69725 (patch) | |
tree | d05baeb3dd61d66231539c57719125290f70bb55 /app/src/main/java/it/niedermann/nextcloud/deck/ui/stack | |
parent | e6784dc24ec2f2ef7f27fcc00ca3d09df7a1d796 (diff) |
Call itemAdapter.move() from UI thread to prevent crash
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 | 7 |
1 files changed, 0 insertions, 7 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 f47bafdb7..be76603db 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 @@ -109,13 +109,6 @@ public class StackFragment extends Fragment implements DragAndDropTab<CardAdapte if (cards != null && cards.size() > 0) { binding.emptyContentView.setVisibility(View.GONE); adapter.setCardList(cards); - // FIXME Workaround for not properly displaying cards again after drag'n'dropping them into another list - for (int i = 0; i < binding.recyclerView.getChildCount(); i++) { - View cardView = binding.recyclerView.getChildAt(i); - if (cardView != null && cardView.getVisibility() == View.INVISIBLE) { - cardView.setVisibility(View.VISIBLE); - } - } } else { binding.emptyContentView.setVisibility(View.VISIBLE); } |