mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-24 18:41:51 +01:00
Fixed missing tabs on chapters
This commit is contained in:
parent
517f24e5e9
commit
73ecfa389b
@ -358,7 +358,7 @@ class LibraryController(
|
|||||||
override fun onChangeStarted(handler: ControllerChangeHandler, type: ControllerChangeType) {
|
override fun onChangeStarted(handler: ControllerChangeHandler, type: ControllerChangeType) {
|
||||||
super.onChangeStarted(handler, type)
|
super.onChangeStarted(handler, type)
|
||||||
if (type.isEnter) {
|
if (type.isEnter) {
|
||||||
if (usePager)
|
if (!usePager)
|
||||||
(activity as MainActivity).supportActionBar?.setDisplayShowCustomEnabled(true)
|
(activity as MainActivity).supportActionBar?.setDisplayShowCustomEnabled(true)
|
||||||
//activity?.tabs?.setupWithViewPager(library_pager)
|
//activity?.tabs?.setupWithViewPager(library_pager)
|
||||||
presenter.getLibrary()
|
presenter.getLibrary()
|
||||||
@ -919,7 +919,7 @@ class LibraryController(
|
|||||||
toggleSelection(position)
|
toggleSelection(position)
|
||||||
true
|
true
|
||||||
} else {
|
} else {
|
||||||
openManga(item.manga, 0f)
|
openManga(item.manga, null)
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -278,10 +278,6 @@ open class MainActivity : BaseActivity(), DownloadServiceListener {
|
|||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
if (router.backstackSize <= 1) {
|
|
||||||
tabAnimator.hide()
|
|
||||||
}
|
|
||||||
|
|
||||||
syncActivityViewWithController(router.backstack.lastOrNull()?.controller())
|
syncActivityViewWithController(router.backstack.lastOrNull()?.controller())
|
||||||
|
|
||||||
if (savedInstanceState == null) {
|
if (savedInstanceState == null) {
|
||||||
|
@ -97,11 +97,6 @@ class TabsAnimator(val tabs: TabLayout) {
|
|||||||
isLastStateShown = false
|
isLastStateShown = false
|
||||||
}
|
}
|
||||||
|
|
||||||
fun hide() {
|
|
||||||
setHeight(0)
|
|
||||||
isLastStateShown = false
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns whether the tab layout has a known height.
|
* Returns whether the tab layout has a known height.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user