|
|
|
@ -13,7 +13,6 @@ import android.os.Build
|
|
|
|
|
import android.os.Bundle
|
|
|
|
|
import android.provider.Settings
|
|
|
|
|
import android.util.Log
|
|
|
|
|
import android.view.Gravity
|
|
|
|
|
import android.view.LayoutInflater
|
|
|
|
|
import android.view.View
|
|
|
|
|
import android.view.ViewGroup
|
|
|
|
@ -138,6 +137,7 @@ import org.mozilla.fenix.components.toolbar.ToolbarIntegration
|
|
|
|
|
import org.mozilla.fenix.components.toolbar.interactor.BrowserToolbarInteractor
|
|
|
|
|
import org.mozilla.fenix.components.toolbar.interactor.DefaultBrowserToolbarInteractor
|
|
|
|
|
import org.mozilla.fenix.crashes.CrashContentIntegration
|
|
|
|
|
import org.mozilla.fenix.customtabs.ExternalAppBrowserActivity
|
|
|
|
|
import org.mozilla.fenix.databinding.FragmentBrowserBinding
|
|
|
|
|
import org.mozilla.fenix.downloads.DynamicDownloadDialog
|
|
|
|
|
import org.mozilla.fenix.downloads.FirstPartyDownloadDialog
|
|
|
|
@ -266,7 +266,11 @@ abstract class BaseBrowserFragment :
|
|
|
|
|
_binding = FragmentBrowserBinding.inflate(inflater, container, false)
|
|
|
|
|
|
|
|
|
|
val activity = activity as HomeActivity
|
|
|
|
|
activity.themeManager.applyStatusBarTheme(activity)
|
|
|
|
|
// ExternalAppBrowserActivity handles it's own theming as it can be customized.
|
|
|
|
|
if (activity !is ExternalAppBrowserActivity) {
|
|
|
|
|
activity.themeManager.applyStatusBarTheme(activity)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val originalContext = ActivityContextWrapper.getOriginalContext(activity)
|
|
|
|
|
binding.engineView.setActivityContext(originalContext)
|
|
|
|
|
|
|
|
|
@ -1567,7 +1571,10 @@ abstract class BaseBrowserFragment :
|
|
|
|
|
activity?.exitImmersiveMode()
|
|
|
|
|
(view as? SwipeGestureLayout)?.isSwipeEnabled = true
|
|
|
|
|
(activity as? HomeActivity)?.let { activity ->
|
|
|
|
|
activity.themeManager.applyStatusBarTheme(activity)
|
|
|
|
|
// ExternalAppBrowserActivity handles it's own theming as it can be customized.
|
|
|
|
|
if (activity !is ExternalAppBrowserActivity) {
|
|
|
|
|
activity.themeManager.applyStatusBarTheme(activity)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (webAppToolbarShouldBeVisible) {
|
|
|
|
|
browserToolbarView.view.isVisible = true
|
|
|
|
|