diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2024-01-26 14:36:27 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2024-01-26 14:36:27 +0000 |
commit | 73af4090998d6c9465c6a64d30499d713b3b3859 (patch) | |
tree | bf33bc18bbf59f4bfdf5d0f2e7dbf4639bf36e46 | |
parent | adaa1d3dc8ff37f911aa36f9f7bf12c66d6a0112 (diff) | |
download | infinity-for-reddit-73af4090998d6c9465c6a64d30499d713b3b3859.tar infinity-for-reddit-73af4090998d6c9465c6a64d30499d713b3b3859.tar.gz infinity-for-reddit-73af4090998d6c9465c6a64d30499d713b3b3859.tar.bz2 infinity-for-reddit-73af4090998d6c9465c6a64d30499d713b3b3859.tar.lz infinity-for-reddit-73af4090998d6c9465c6a64d30499d713b3b3859.tar.xz infinity-for-reddit-73af4090998d6c9465c6a64d30499d713b3b3859.tar.zst infinity-for-reddit-73af4090998d6c9465c6a64d30499d713b3b3859.zip |
Fix a bug in FilteredPostsActivity.
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/activities/FilteredPostsActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/FilteredPostsActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/FilteredPostsActivity.java index 4a28efcb..3df23f15 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/FilteredPostsActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/FilteredPostsActivity.java @@ -167,7 +167,6 @@ public class FilteredPostsActivity extends BaseActivity implements SortTypeSelec PostFilter postFilter = getIntent().getParcelableExtra(EXTRA_CONSTRUCTED_POST_FILTER); if (postFilter == null) { postFilter = new PostFilter(); - postFilter.allowNSFW = !mSharedPreferences.getBoolean(SharedPreferencesUtils.DISABLE_NSFW_FOREVER, false) && mNsfwAndSpoilerSharedPreferences.getBoolean((mAccountName.equals(Account.ANONYMOUS_ACCOUNT) ? "" : mAccountName) + SharedPreferencesUtils.NSFW_BASE, false); switch (filter) { case Post.NSFW_TYPE: postFilter.onlyNSFW = true; @@ -227,6 +226,7 @@ public class FilteredPostsActivity extends BaseActivity implements SortTypeSelec postFilter.containFlairs = flair; } } + postFilter.allowNSFW = !mSharedPreferences.getBoolean(SharedPreferencesUtils.DISABLE_NSFW_FOREVER, false) && mNsfwAndSpoilerSharedPreferences.getBoolean((mAccountName.equals(Account.ANONYMOUS_ACCOUNT) ? "" : mAccountName) + SharedPreferencesUtils.NSFW_BASE, false); if (postType == PostPagingSource.TYPE_USER) { userWhere = getIntent().getStringExtra(EXTRA_USER_WHERE); |