From f26a60f1ba60bbfb6ef4f7d086137d0bae169928 Mon Sep 17 00:00:00 2001 From: inorichi Date: Wed, 30 Dec 2015 19:58:52 +0100 Subject: [PATCH] Fixed again --- .../java/eu/kanade/mangafeed/ui/library/LibraryFragment.java | 4 ++++ 1 file changed, 4 insertions(+) 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));