#8085 removed findViewById with actual id

fennec/nightly
Marc Leclair 5 years ago committed by Jeff Boek
parent 9fc5a1b0fe
commit afab1c0f4e

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

Loading…
Cancel
Save