Fixed again

pull/12/head
inorichi 9 years ago
parent 1344824b4a
commit f26a60f1ba

@ -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));

Loading…
Cancel
Save