aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-03-11 10:48:03 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-03-11 10:48:03 +0000
commit231530c6eb65819f3dd3ff7b015f2a5b41d53a67 (patch)
tree7500c32c7a8217c409eb12a8fa992ae6b96f7a14 /app/src/main
parente43adf966c44f436b35f1445fd75ca6f15523a33 (diff)
downloadinfinity-for-reddit-231530c6eb65819f3dd3ff7b015f2a5b41d53a67.tar
infinity-for-reddit-231530c6eb65819f3dd3ff7b015f2a5b41d53a67.tar.gz
infinity-for-reddit-231530c6eb65819f3dd3ff7b015f2a5b41d53a67.tar.bz2
infinity-for-reddit-231530c6eb65819f3dd3ff7b015f2a5b41d53a67.tar.lz
infinity-for-reddit-231530c6eb65819f3dd3ff7b015f2a5b41d53a67.tar.xz
infinity-for-reddit-231530c6eb65819f3dd3ff7b015f2a5b41d53a67.tar.zst
infinity-for-reddit-231530c6eb65819f3dd3ff7b015f2a5b41d53a67.zip
Fix posts not loading in anonymous front page.
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/FetchPostFilterReadPostsAndConcatenatedSubredditNames.java2
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/post/PostDataSource.java2
2 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/FetchPostFilterReadPostsAndConcatenatedSubredditNames.java b/app/src/main/java/ml/docilealligator/infinityforreddit/FetchPostFilterReadPostsAndConcatenatedSubredditNames.java
index e594b504..328a2e52 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/FetchPostFilterReadPostsAndConcatenatedSubredditNames.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/FetchPostFilterReadPostsAndConcatenatedSubredditNames.java
@@ -44,7 +44,7 @@ public class FetchPostFilterReadPostsAndConcatenatedSubredditNames {
if (anonymousSubscribedSubreddits != null && !anonymousSubscribedSubreddits.isEmpty()) {
StringBuilder stringBuilder = new StringBuilder();
for (SubscribedSubredditData s : anonymousSubscribedSubreddits) {
- stringBuilder.append(s).append("+");
+ stringBuilder.append(s.getName()).append("+");
}
if (stringBuilder.length() > 0) {
stringBuilder.deleteCharAt(stringBuilder.length() - 1);
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/post/PostDataSource.java b/app/src/main/java/ml/docilealligator/infinityforreddit/post/PostDataSource.java
index e6991a7b..8c567809 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/post/PostDataSource.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/post/PostDataSource.java
@@ -198,6 +198,7 @@ public class PostDataSource extends PageKeyedDataSource<String, Post> {
loadMultiRedditPostsInitial(callback, null);
break;
case TYPE_ANONYMOUS_FRONT_PAGE:
+ loadAnonymousFrontPagePostsInitial(callback, null);
break;
}
}
@@ -235,6 +236,7 @@ public class PostDataSource extends PageKeyedDataSource<String, Post> {
loadMultiRedditPostsAfter(params, callback, null);
break;
case TYPE_ANONYMOUS_FRONT_PAGE:
+ loadAnonymousFrontPagePostsAfter(params, callback, null);
break;
}
}