diff --git a/app/src/main/java/eu/kanade/mangafeed/ui/library/LibraryCategoryFragment.java b/app/src/main/java/eu/kanade/mangafeed/ui/library/LibraryCategoryFragment.java index 6c26c011b..4c5abab42 100644 --- a/app/src/main/java/eu/kanade/mangafeed/ui/library/LibraryCategoryFragment.java +++ b/app/src/main/java/eu/kanade/mangafeed/ui/library/LibraryCategoryFragment.java @@ -117,7 +117,7 @@ public class LibraryCategoryFragment extends BaseFragment protected void openManga(Manga manga) { Intent intent = MangaActivity.newIntent(getActivity(), manga); - getActivity().startActivity(intent); + startActivity(intent); } public void setMangas(List mangas) { 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 db15a64f9..5c3f2067f 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,8 +129,6 @@ public class LibraryFragment extends BaseRxFragment } // Restore active category 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 EventBus.getDefault().postSticky(new LibraryMangasEvent(mangas));