mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-28 11:58:23 +01:00
Fix FilteredPostsActivity problem in anonymous mode.
This commit is contained in:
parent
ddfc478e0e
commit
6910947dee
@ -263,6 +263,7 @@ public class FilteredPostsActivity extends BaseActivity implements SortTypeSelec
|
||||
private void bindView(PostFilter postFilter, boolean initializeFragment) {
|
||||
switch (postType) {
|
||||
case PostPagingSource.TYPE_FRONT_PAGE:
|
||||
case PostPagingSource.TYPE_ANONYMOUS_FRONT_PAGE:
|
||||
getSupportActionBar().setTitle(R.string.home);
|
||||
break;
|
||||
case PostPagingSource.TYPE_SEARCH:
|
||||
|
@ -1644,7 +1644,7 @@ public class PostFragment extends Fragment implements FragmentCommunicator {
|
||||
intent.putExtra(FilteredPostsActivity.EXTRA_NAME, subredditName);
|
||||
intent.putExtra(FilteredPostsActivity.EXTRA_POST_TYPE, postType);
|
||||
startActivity(intent);
|
||||
} else if (postType == PostPagingSource.TYPE_MULTI_REDDIT) {
|
||||
} else if (postType == PostPagingSource.TYPE_MULTI_REDDIT || postType == PostPagingSource.TYPE_ANONYMOUS_MULTIREDDIT) {
|
||||
Intent intent = new Intent(activity, FilteredPostsActivity.class);
|
||||
intent.putExtra(FilteredPostsActivity.EXTRA_NAME, multiRedditPath);
|
||||
intent.putExtra(FilteredPostsActivity.EXTRA_POST_TYPE, postType);
|
||||
|
Loading…
Reference in New Issue
Block a user