diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-11-07 18:16:37 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-11-07 18:16:37 +0300 |
commit | f36c1af2313e2ecee8264764e4d919f2e5179f17 (patch) | |
tree | bfcc1054762f7ba79863b5ff46eacee79a0778e3 /app/src/main/java/it/niedermann/nextcloud/deck/ui/card/attachments/picker/GalleryAdapter.java | |
parent | 60a8a757affd8b7918dc3da11ee7c41725f345e8 (diff) |
Make gallery tab more robust
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/ui/card/attachments/picker/GalleryAdapter.java')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/card/attachments/picker/GalleryAdapter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/card/attachments/picker/GalleryAdapter.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/card/attachments/picker/GalleryAdapter.java index 7f5c254c3..1b4375ae8 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/card/attachments/picker/GalleryAdapter.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/card/attachments/picker/GalleryAdapter.java @@ -43,7 +43,7 @@ public class GalleryAdapter extends AbstractCursorPickerAdapter<RecyclerView.Vie public GalleryAdapter(@NonNull Context context, @NonNull BiConsumer<Uri, Pair<String, RequestBuilder<?>>> onSelect, @NonNull Runnable openNativePicker, @NonNull LifecycleOwner lifecycleOwner) { super(context, onSelect, openNativePicker, EXTERNAL_CONTENT_URI, _ID, sortOrder + " DESC"); this.lifecycleOwner = lifecycleOwner; - notifyItemRangeInserted(0, getItemCount()); + notifyItemRangeInserted(0, getItemCount() + 1); } @NonNull |