mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-24 15:01:52 +01:00
Fixed drop down in title showing up unintended
This commit is contained in:
parent
570c6abf07
commit
5f78765ef6
@ -502,7 +502,9 @@ class LibraryController(
|
|||||||
LibraryUpdateService.setListener(this)
|
LibraryUpdateService.setListener(this)
|
||||||
recycler_cover.isClickable = false
|
recycler_cover.isClickable = false
|
||||||
recycler_cover.isFocusable = false
|
recycler_cover.isFocusable = false
|
||||||
activity?.dropdown?.visibleIf(!singleCategory)
|
if (onRoot) {
|
||||||
|
activity?.dropdown?.visibleIf(!singleCategory)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
closeTip()
|
closeTip()
|
||||||
activity?.dropdown?.gone()
|
activity?.dropdown?.gone()
|
||||||
@ -552,7 +554,9 @@ class LibraryController(
|
|||||||
recycler.itemAnimator = DefaultItemAnimator()
|
recycler.itemAnimator = DefaultItemAnimator()
|
||||||
}
|
}
|
||||||
singleCategory = presenter.categories.size <= 1
|
singleCategory = presenter.categories.size <= 1
|
||||||
activity?.dropdown?.visibleIf(!singleCategory)
|
if (onRoot) {
|
||||||
|
activity?.dropdown?.visibleIf(!singleCategory)
|
||||||
|
}
|
||||||
progress.gone()
|
progress.gone()
|
||||||
if (!freshStart) {
|
if (!freshStart) {
|
||||||
justStarted = false
|
justStarted = false
|
||||||
@ -571,12 +575,14 @@ class LibraryController(
|
|||||||
adapter.isLongPressDragEnabled = canDrag()
|
adapter.isLongPressDragEnabled = canDrag()
|
||||||
category_recycler.setCategories(presenter.categories)
|
category_recycler.setCategories(presenter.categories)
|
||||||
setActiveCategory()
|
setActiveCategory()
|
||||||
activity?.toolbar?.setOnClickListener {
|
if (onRoot) {
|
||||||
val recycler = recycler ?: return@setOnClickListener
|
activity?.toolbar?.setOnClickListener {
|
||||||
if (singleCategory) {
|
val recycler = recycler ?: return@setOnClickListener
|
||||||
recycler.scrollToPosition(0)
|
if (singleCategory) {
|
||||||
} else {
|
recycler.scrollToPosition(0)
|
||||||
showCategories(recycler.translationY == 0f)
|
} else {
|
||||||
|
showCategories(recycler.translationY == 0f)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user