Commit cbdf83c1 authored by Mihai Adrian's avatar Mihai Adrian Committed by Tiger Oakes
Browse files

For #6943 Hide supportActionBar in onResume, not onCreate (#6978)

parent 11c7d3eb
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -320,8 +320,6 @@ class HomeFragment : Fragment() {
            tabs = getListOfSessions().toTabs()
        ))

        hideToolbar()

        requireComponents.backgroundServices.accountManager.register(currentMode, owner = this)
        requireComponents.backgroundServices.accountManager.register(object : AccountObserver {
            override fun onAuthenticated(account: OAuthAccount, authType: AuthType) {
@@ -436,6 +434,11 @@ class HomeFragment : Fragment() {
        homeViewModel.motionLayoutProgress = homeLayout?.progress ?: 0F
    }

    override fun onResume() {
        super.onResume()
        hideToolbar()
    }

    private fun recommendPrivateBrowsingShortcut() {
        context?.let {
            val layout = LayoutInflater.from(it)