For #26236: Fix breaking change from AC regarding exitImmersiveModeIfNeeded

This will allow Fenix to use the refactored method name 'exitImmersiveMode' in Activity from Android Components library

Co-Authored-By: Mugurell <Mugurell@users.noreply.github.com>
This commit is contained in:
indu 2022-07-29 14:57:55 +05:30 committed by mergify[bot]
parent 926daabe1f
commit 1488e8e87b
1 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ import mozilla.components.service.sync.logins.DefaultLoginValidationDelegate
import mozilla.components.support.base.feature.PermissionsFeature
import mozilla.components.support.base.feature.UserInteractionHandler
import mozilla.components.support.base.feature.ViewBoundFeatureWrapper
import mozilla.components.support.ktx.android.view.exitImmersiveModeIfNeeded
import mozilla.components.support.ktx.android.view.exitImmersiveMode
import mozilla.components.support.ktx.android.view.hideKeyboard
import mozilla.components.support.ktx.kotlinx.coroutines.flow.ifAnyChanged
import mozilla.components.support.ktx.kotlinx.coroutines.flow.ifChanged
@ -1381,7 +1381,7 @@ abstract class BaseBrowserFragment :
MediaState.fullscreen.record(NoExtras())
} else {
activity?.exitImmersiveModeIfNeeded()
activity?.exitImmersiveMode()
(activity as? HomeActivity)?.let { activity ->
activity.themeManager.applyStatusBarTheme(activity)
}