mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-19 22:59:18 +01:00
Fix crash on launch...
This commit is contained in:
parent
a794bea9e7
commit
1344824b4a
@ -117,7 +117,7 @@ public class LibraryCategoryFragment extends BaseFragment
|
|||||||
|
|
||||||
protected void openManga(Manga manga) {
|
protected void openManga(Manga manga) {
|
||||||
Intent intent = MangaActivity.newIntent(getActivity(), manga);
|
Intent intent = MangaActivity.newIntent(getActivity(), manga);
|
||||||
getActivity().startActivity(intent);
|
startActivity(intent);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMangas(List<Manga> mangas) {
|
public void setMangas(List<Manga> mangas) {
|
||||||
|
@ -129,8 +129,6 @@ public class LibraryFragment extends BaseRxFragment<LibraryPresenter>
|
|||||||
}
|
}
|
||||||
// Restore active category
|
// Restore active category
|
||||||
viewPager.setCurrentItem(activeCat, false);
|
viewPager.setCurrentItem(activeCat, false);
|
||||||
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…
Reference in New Issue
Block a user