Skip to content
Snippets Groups Projects
Commit 1436c309 authored by Arturo Mejia's avatar Arturo Mejia
Browse files

For #18553 Revert "For #17804: Use enterToImmersiveMode from support-ktx component"

This reverts commit fbe73cfc
parent 805644f4
No related branches found
No related tags found
No related merge requests found
......@@ -110,6 +110,7 @@ import org.mozilla.fenix.downloads.DynamicDownloadDialog
import org.mozilla.fenix.ext.accessibilityManager
import org.mozilla.fenix.ext.breadcrumb
import org.mozilla.fenix.ext.components
import org.mozilla.fenix.ext.enterToImmersiveMode
import org.mozilla.fenix.ext.getPreferenceKey
import org.mozilla.fenix.ext.hideToolbar
import org.mozilla.fenix.ext.metrics
......@@ -128,7 +129,6 @@ import java.lang.ref.WeakReference
import mozilla.components.feature.session.behavior.EngineViewBrowserToolbarBehavior
import mozilla.components.feature.webauthn.WebAuthnFeature
import mozilla.components.support.base.feature.ActivityResultHandler
import mozilla.components.support.ktx.android.view.enterToImmersiveMode
import org.mozilla.fenix.GleanMetrics.PerfStartup
import org.mozilla.fenix.ext.measureNoInline
import mozilla.components.feature.session.behavior.ToolbarPosition as MozacToolbarPosition
......
......@@ -15,13 +15,6 @@ import mozilla.components.concept.base.crash.Breadcrumb
* We don't use the equivalent function from Android Components because the stable flag messes
* with the toolbar. See #1998 and #3272.
*/
@Deprecated(
message = "Use the Android Component implementation instead.",
replaceWith = ReplaceWith(
"enterToImmersiveMode()",
"mozilla.components.support.ktx.android.view.enterToImmersiveMode"
)
)
fun Activity.enterToImmersiveMode() {
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
window.decorView.systemUiVisibility = (View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment