Skip to content

Commit

Permalink
For mozilla-mobile#6313 - Update engineView visibility on session select
Browse files Browse the repository at this point in the history
  • Loading branch information
ekager committed May 16, 2020
1 parent 9b16017 commit d431727
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import android.view.ViewGroup
import androidx.annotation.CallSuper
import androidx.coordinatorlayout.widget.CoordinatorLayout
import androidx.core.net.toUri
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.lifecycleScope
Expand Down Expand Up @@ -461,6 +462,7 @@ abstract class BaseBrowserFragment : Fragment(), UserInteractionHandler, Session

sessionManager.register(observer = object : SessionManager.Observer {
override fun onSessionSelected(session: Session) {
engineView?.asView()?.isVisible = didFirstContentfulHappen()
fullScreenChanged(false)
browserToolbarView.expand()
}
Expand Down

0 comments on commit d431727

Please sign in to comment.