diff options
author | Stefan Niedermann <info@niedermann.it> | 2021-04-09 23:40:33 +0300 |
---|---|---|
committer | Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com> | 2021-04-10 14:38:50 +0300 |
commit | d79da5f7da415dfb97080f17fd2b83f836538ee6 (patch) | |
tree | d8995950f39c0cbee04f9bb0ebd5b3a95a683edd /app/src/main/java/it | |
parent | 0bf5ca88b8bcf5ae958d74c7d5dc3df86c6fa9b5 (diff) |
Show initial loading spinner in stacks
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app/src/main/java/it')
-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 2778cbd19..3dd06cdfc 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 @@ -86,6 +86,7 @@ public class StackFragment extends Fragment implements DragAndDropTab<CardAdapte ? (SelectCardListener) requireActivity() : null); binding.recyclerView.setAdapter(adapter); + binding.loadingSpinner.show(); if (onScrollListener != null) { binding.recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { @@ -104,6 +105,7 @@ public class StackFragment extends Fragment implements DragAndDropTab<CardAdapte } final Observer<List<FullCard>> cardsObserver = (fullCards) -> activity.runOnUiThread(() -> { + binding.loadingSpinner.hide(); if (fullCards != null && fullCards.size() > 0) { binding.emptyContentView.setVisibility(View.GONE); adapter.setCardList(fullCards); |