Fixed again

This commit is contained in:
inorichi 2015-12-30 19:58:52 +01:00
parent 1344824b4a
commit f26a60f1ba

View file

@ -129,6 +129,10 @@ public class LibraryFragment extends BaseRxFragment<LibraryPresenter>
} }
// Restore active category // Restore active category
viewPager.setCurrentItem(activeCat, false); 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 // Send the mangas to child fragments after the adapter is updated
EventBus.getDefault().postSticky(new LibraryMangasEvent(mangas)); EventBus.getDefault().postSticky(new LibraryMangasEvent(mangas));