From 0b5898c7d91400b615e6076b13a7faa0007f610a Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sat, 17 Jul 2021 21:07:16 +0800 Subject: Set the maximum number of images in PostGalleryActivity to 20. --- .../adapters/RedditGallerySubmissionRecyclerViewAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/java/ml') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/RedditGallerySubmissionRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/RedditGallerySubmissionRecyclerViewAdapter.java index 66f0a8b9..bec2d265 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/RedditGallerySubmissionRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/RedditGallerySubmissionRecyclerViewAdapter.java @@ -101,7 +101,7 @@ public class RedditGallerySubmissionRecyclerViewAdapter extends RecyclerView.Ada @Override public int getItemCount() { - return redditGalleryImageInfoList == null ? 1 : (redditGalleryImageInfoList.size() >= 9 ? 9 : redditGalleryImageInfoList.size() + 1); + return redditGalleryImageInfoList == null ? 1 : (redditGalleryImageInfoList.size() >= 20 ? 20 : redditGalleryImageInfoList.size() + 1); } @Override -- cgit v1.2.3