Skip to content

Commit

Permalink
mozilla-mobile#7700 fixed +1 that I added for some odd reason
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcLeclair committed Jan 31, 2020
1 parent 9fa3560 commit 1eec35d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class HomeFragment : Fragment() {
)

if (::sessionControlView.isInitialized) {
if (offSet <= 0 || offSet == 1) {
if (offSet < 0) {
(view.homeAppBar.layoutParams as CoordinatorLayout.LayoutParams)
.behavior = AppBarLayout.Behavior()
val behavior = ((view.homeAppBar.layoutParams as CoordinatorLayout.LayoutParams)
Expand Down Expand Up @@ -457,7 +457,7 @@ class HomeFragment : Fragment() {
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
}

private fun recommendPrivateBrowsingShortcut() {
Expand Down

0 comments on commit 1eec35d

Please sign in to comment.