properly handle viewpager updates with NestedScrollViews
This commit is contained in:
parent
7e489f7121
commit
7408174438
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue