diff --git a/app/src/main/java/eu/kanade/mangafeed/ui/library/LibraryFragment.java b/app/src/main/java/eu/kanade/mangafeed/ui/library/LibraryFragment.java index 5c3f2067f..d1e6c1721 100644 --- a/app/src/main/java/eu/kanade/mangafeed/ui/library/LibraryFragment.java +++ b/app/src/main/java/eu/kanade/mangafeed/ui/library/LibraryFragment.java @@ -129,6 +129,10 @@ public class LibraryFragment extends BaseRxFragment } // Restore active category viewPager.setCurrentItem(activeCat, false); + if (tabs.getTabCount() > 0) { + TabLayout.Tab tab = tabs.getTabAt(viewPager.getCurrentItem()); + if (tab != null) tab.select(); + } // Send the mangas to child fragments after the adapter is updated EventBus.getDefault().postSticky(new LibraryMangasEvent(mangas));