properly handle viewpager updates with NestedScrollViews

This commit is contained in:
tibbi 2022-12-31 11:44:43 +01:00
parent 7e489f7121
commit 7408174438

View file

@ -303,7 +303,7 @@ abstract class BaseSimpleActivity : AppCompatActivity() {
}
fun updateStatusBarOnPageChange() {
if (scrollingView is RecyclerView) {
if (scrollingView is RecyclerView || scrollingView is NestedScrollView) {
val scrollY = scrollingView!!.computeVerticalScrollOffset()
val colorFrom = window.statusBarColor
val colorTo = if (scrollY > 0) {