Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
Bug 1875465 - Part 5: Hide tab strip when full screen
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulsainani committed Feb 19, 2024
1 parent 7026fc5 commit a97ae95
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1560,6 +1560,7 @@ abstract class BaseBrowserFragment :
(view as? SwipeGestureLayout)?.isSwipeEnabled = false
browserToolbarView.collapse()
browserToolbarView.view.isVisible = false
binding.tabStripView.isVisible = false
val browserEngine = binding.swipeRefresh.layoutParams as CoordinatorLayout.LayoutParams
browserEngine.bottomMargin = 0
browserEngine.topMargin = 0
Expand All @@ -1585,6 +1586,9 @@ abstract class BaseBrowserFragment :
initializeEngineView(toolbarHeight)
browserToolbarView.expand()
}
if (requireContext().settings().isTabletAndTabStripEnabled) {
binding.tabStripView.isVisible = true
}
}

binding.swipeRefresh.isEnabled = shouldPullToRefreshBeEnabled(inFullScreen)
Expand Down

0 comments on commit a97ae95

Please sign in to comment.