1
0
Fork 0

#8085 removed findViewById with actual id

master
Marc Leclair 2020-02-05 09:28:22 -05:00 committed by Jeff Boek
parent 9fc5a1b0fe
commit afab1c0f4e
1 changed files with 1 additions and 2 deletions

View File

@ -831,8 +831,7 @@ class HomeFragment : Fragment() {
}
private fun calculateNewOffset() {
homeAppBarOffset = ((view!!.findViewById<AppBarLayout>(R.id.homeAppBar)
.layoutParams as CoordinatorLayout.LayoutParams)
homeAppBarOffset = ((homeAppBar.layoutParams as CoordinatorLayout.LayoutParams)
.behavior as AppBarLayout.Behavior).topAndBottomOffset
}