Skip to content

Commit

Permalink
fix(Discover): switch post and hashtag fragments everywhere
Browse files Browse the repository at this point in the history
Fixes a regression in 5edbe9b, whcih
did not switch the fragments everywhere. This caused the scroll-to-top
functionality to not work and the posts to not immediatly load.

Closes #483.
  • Loading branch information
FineFindus committed Aug 3, 2024
1 parent 81519fe commit 2dada69
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ private void exitSearch(){

private Fragment getFragmentForPage(int page){
return switch(page){
case 0 -> hashtagsFragment;
case 1 -> postsFragment;
case 0 -> postsFragment;
case 1 -> hashtagsFragment;
case 2 -> newsFragment;
case 3 -> accountsFragment;
default -> throw new IllegalStateException("Unexpected value: "+page);
Expand Down

0 comments on commit 2dada69

Please sign in to comment.