diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt index 5f196fef2d..90ef30ce48 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt @@ -358,8 +358,8 @@ class LibraryController( override fun onChangeStarted(handler: ControllerChangeHandler, type: ControllerChangeType) { super.onChangeStarted(handler, type) if (type.isEnter) { - if (usePager) - (activity as MainActivity).supportActionBar?.setDisplayShowCustomEnabled(true) + if (!usePager) + (activity as MainActivity).supportActionBar?.setDisplayShowCustomEnabled(true) //activity?.tabs?.setupWithViewPager(library_pager) presenter.getLibrary() DownloadService.addListener(this) @@ -919,7 +919,7 @@ class LibraryController( toggleSelection(position) true } else { - openManga(item.manga, 0f) + openManga(item.manga, null) false } } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt index a16e6fe042..ff4ba3237c 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt @@ -278,10 +278,6 @@ open class MainActivity : BaseActivity(), DownloadServiceListener { }) - if (router.backstackSize <= 1) { - tabAnimator.hide() - } - syncActivityViewWithController(router.backstack.lastOrNull()?.controller()) if (savedInstanceState == null) { diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/main/TabsAnimator.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/main/TabsAnimator.kt index 35edd4d084..9cd5393704 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/main/TabsAnimator.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/main/TabsAnimator.kt @@ -97,11 +97,6 @@ class TabsAnimator(val tabs: TabLayout) { isLastStateShown = false } - fun hide() { - setHeight(0) - isLastStateShown = false - } - /** * Returns whether the tab layout has a known height. */