Skip to content

Commit

Permalink
mozilla-mobile#7700 fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcLeclair committed Jan 29, 2020
1 parent 6ae274c commit 951b0ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class HomeFragment : Fragment() {
.behavior as AppBarLayout.Behavior)
behavior.topAndBottomOffset = offSet
behavior.onNestedPreScroll(view as CoordinatorLayout, view.homeAppBar,
sessionControlView.view ,0 , 1 , intArrayOf(2) ,
sessionControlView.view, 0, 1, intArrayOf(2),
ViewCompat.TYPE_NON_TOUCH)
} else {
view.homeAppBar.setExpanded(false)
Expand Down Expand Up @@ -453,11 +453,11 @@ class HomeFragment : Fragment() {
hideToolbar()
}

override fun onPause() {
override fun onPause() {
super.onPause()
val rect = Rect()
view!!.findViewById<AppBarLayout>(R.id.homeAppBar).getGlobalVisibleRect(rect)
offSet = rect.height() - view!!.findViewById<AppBarLayout>(R.id.homeAppBar).totalScrollRange + 1
offSet = rect.height() - view!!.findViewById<AppBarLayout>(R.id.homeAppBar).totalScrollRange + 1
}

private fun recommendPrivateBrowsingShortcut() {
Expand Down

0 comments on commit 951b0ad

Please sign in to comment.