Fixed drop down in title showing up unintended
This commit is contained in:
parent
570c6abf07
commit
5f78765ef6
1 changed files with 14 additions and 8 deletions
|
@ -502,7 +502,9 @@ class LibraryController(
|
|||
LibraryUpdateService.setListener(this)
|
||||
recycler_cover.isClickable = false
|
||||
recycler_cover.isFocusable = false
|
||||
activity?.dropdown?.visibleIf(!singleCategory)
|
||||
if (onRoot) {
|
||||
activity?.dropdown?.visibleIf(!singleCategory)
|
||||
}
|
||||
} else {
|
||||
closeTip()
|
||||
activity?.dropdown?.gone()
|
||||
|
@ -552,7 +554,9 @@ class LibraryController(
|
|||
recycler.itemAnimator = DefaultItemAnimator()
|
||||
}
|
||||
singleCategory = presenter.categories.size <= 1
|
||||
activity?.dropdown?.visibleIf(!singleCategory)
|
||||
if (onRoot) {
|
||||
activity?.dropdown?.visibleIf(!singleCategory)
|
||||
}
|
||||
progress.gone()
|
||||
if (!freshStart) {
|
||||
justStarted = false
|
||||
|
@ -571,12 +575,14 @@ class LibraryController(
|
|||
adapter.isLongPressDragEnabled = canDrag()
|
||||
category_recycler.setCategories(presenter.categories)
|
||||
setActiveCategory()
|
||||
activity?.toolbar?.setOnClickListener {
|
||||
val recycler = recycler ?: return@setOnClickListener
|
||||
if (singleCategory) {
|
||||
recycler.scrollToPosition(0)
|
||||
} else {
|
||||
showCategories(recycler.translationY == 0f)
|
||||
if (onRoot) {
|
||||
activity?.toolbar?.setOnClickListener {
|
||||
val recycler = recycler ?: return@setOnClickListener
|
||||
if (singleCategory) {
|
||||
recycler.scrollToPosition(0)
|
||||
} else {
|
||||
showCategories(recycler.translationY == 0f)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue