aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-07-17 13:07:16 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-07-17 13:07:16 +0000
commit0b5898c7d91400b615e6076b13a7faa0007f610a (patch)
treed66694e309eda7cb6a744314bf2e79e699779d80 /app
parent170cdb5aaf4bed936f0b82d84fb6f0ebff0e4b6d (diff)
downloadinfinity-for-reddit-0b5898c7d91400b615e6076b13a7faa0007f610a.tar
infinity-for-reddit-0b5898c7d91400b615e6076b13a7faa0007f610a.tar.gz
infinity-for-reddit-0b5898c7d91400b615e6076b13a7faa0007f610a.tar.bz2
infinity-for-reddit-0b5898c7d91400b615e6076b13a7faa0007f610a.tar.lz
infinity-for-reddit-0b5898c7d91400b615e6076b13a7faa0007f610a.tar.xz
infinity-for-reddit-0b5898c7d91400b615e6076b13a7faa0007f610a.tar.zst
infinity-for-reddit-0b5898c7d91400b615e6076b13a7faa0007f610a.zip
Set the maximum number of images in PostGalleryActivity to 20.
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/adapters/RedditGallerySubmissionRecyclerViewAdapter.java2
1 files changed, 1 insertions, 1 deletions
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