mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-25 02:02:04 +01:00
Hide fast scroll when showing backdrop
This commit is contained in:
parent
d9ad689506
commit
6c27147166
@ -716,7 +716,8 @@ class LibraryController(
|
|||||||
category_hopper_frame.animate().translationY(translateY).start()
|
category_hopper_frame.animate().translationY(translateY).start()
|
||||||
if (scroll) {
|
if (scroll) {
|
||||||
// Smooth scroll the recycler to hide the hidden content blocked by the app bar
|
// Smooth scroll the recycler to hide the hidden content blocked by the app bar
|
||||||
ValueAnimator.ofInt(recycler.translationY.roundToInt(), translateY.roundToInt()).apply {
|
val vA = ValueAnimator.ofInt(recycler.translationY.roundToInt(), translateY
|
||||||
|
.roundToInt()).apply {
|
||||||
var start = 0f
|
var start = 0f
|
||||||
var last = recycler.translationY.roundToInt()
|
var last = recycler.translationY.roundToInt()
|
||||||
val distance = abs(recycler.translationY.roundToInt() - translateY.roundToInt())
|
val distance = abs(recycler.translationY.roundToInt() - translateY.roundToInt())
|
||||||
@ -729,11 +730,15 @@ class LibraryController(
|
|||||||
start %= 1
|
start %= 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
addListener(EndAnimatorListener {
|
||||||
|
fast_scroller?.hideScrollbar()
|
||||||
|
})
|
||||||
}.start()
|
}.start()
|
||||||
}
|
}
|
||||||
recycler_cover.animate().translationY(translateY).start()
|
recycler_cover.animate().translationY(translateY).start()
|
||||||
recycler_cover.animate().alpha(if (show) 0.75f else 0f).start()
|
recycler_cover.animate().alpha(if (show) 0.75f else 0f).start()
|
||||||
if (show) {
|
if (show) {
|
||||||
|
fast_scroller?.hideScrollbar()
|
||||||
activity?.appbar?.y = 0f
|
activity?.appbar?.y = 0f
|
||||||
elevateFunc(false)
|
elevateFunc(false)
|
||||||
activity?.dropdown?.setImageResource(R.drawable.ic_arrow_drop_up_24dp)
|
activity?.dropdown?.setImageResource(R.drawable.ic_arrow_drop_up_24dp)
|
||||||
|
Loading…
Reference in New Issue
Block a user