Skip to content

Commit

Permalink
Merge pull request #491 from FineFindus/fix/discover-scroll-regression
Browse files Browse the repository at this point in the history
fix(Discover): switch post and hashtag fragments everywhere
  • Loading branch information
LucasGGamerM authored Aug 3, 2024
2 parents 81519fe + 2dada69 commit f404d2f
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 f404d2f

Please sign in to comment.