mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-24 03:41:54 +01:00
Fixed missing tabs on chapters
This commit is contained in:
parent
517f24e5e9
commit
73ecfa389b
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -278,10 +278,6 @@ open class MainActivity : BaseActivity(), DownloadServiceListener {
|
||||
|
||||
})
|
||||
|
||||
if (router.backstackSize <= 1) {
|
||||
tabAnimator.hide()
|
||||
}
|
||||
|
||||
syncActivityViewWithController(router.backstack.lastOrNull()?.controller())
|
||||
|
||||
if (savedInstanceState == null) {
|
||||
|
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user