Merge pull request #491 from FineFindus/fix/discover-scroll-regression

fix(Discover): switch post and hashtag fragments everywhere
This commit is contained in:
LucasGGamerM 2024-08-03 08:05:10 -03:00 committed by GitHub
commit f404d2f9cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -260,8 +260,8 @@ public class DiscoverFragment extends AppKitFragment implements ScrollableToTop,
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);