mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 06:09:19 +01:00
Fix toolbar elevation issues with theme switching
This commit is contained in:
parent
f5aafebc91
commit
44c2337e3d
@ -191,6 +191,7 @@ class RecentsController(bundle: Bundle? = null) :
|
|||||||
binding.shadow2.alpha = if (isCollapsed) 0.25f else 0f
|
binding.shadow2.alpha = if (isCollapsed) 0.25f else 0f
|
||||||
binding.shadow.alpha = if (isCollapsed) 0.5f else 0f
|
binding.shadow.alpha = if (isCollapsed) 0.5f else 0f
|
||||||
binding.fakeAppBar.alpha = if (isExpanded) 1f else 0f
|
binding.fakeAppBar.alpha = if (isExpanded) 1f else 0f
|
||||||
|
updateTitleAndMenu()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (presenter.recentItems.isNotEmpty()) {
|
if (presenter.recentItems.isNotEmpty()) {
|
||||||
|
@ -322,6 +322,10 @@ fun Controller.scrollViewWith(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
elevateFunc(recycler.canScrollVertically(-1))
|
elevateFunc(recycler.canScrollVertically(-1))
|
||||||
|
|
||||||
|
recycler.post {
|
||||||
|
elevateFunc(recycler.canScrollVertically(-1))
|
||||||
|
}
|
||||||
recycler.addOnScrollListener(
|
recycler.addOnScrollListener(
|
||||||
object : RecyclerView.OnScrollListener() {
|
object : RecyclerView.OnScrollListener() {
|
||||||
override fun onScrolled(recyclerView: RecyclerView, dx: Int, dy: Int) {
|
override fun onScrolled(recyclerView: RecyclerView, dx: Int, dy: Int) {
|
||||||
|
Loading…
Reference in New Issue
Block a user