2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-09 19:10:42 +00:00

#8085 removed findViewById with actual id

This commit is contained in:
Marc Leclair 2020-02-05 09:28:22 -05:00 committed by Jeff Boek
parent 9fc5a1b0fe
commit afab1c0f4e

View File

@ -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
} }