Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fenix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
The Tor Project
Applications
fenix
Commits
fbe73cfc
Commit
fbe73cfc
authored
4 years ago
by
Jonathan Almeida
Committed by
Jonathan Almeida
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
For #17804: Use enterToImmersiveMode from support-ktx component
parent
157c41c2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt
+1
-1
1 addition, 1 deletion
...ain/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt
app/src/main/java/org/mozilla/fenix/ext/Activity.kt
+7
-0
7 additions, 0 deletions
app/src/main/java/org/mozilla/fenix/ext/Activity.kt
with
8 additions
and
1 deletion
app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt
+
1
−
1
View file @
fbe73cfc
...
...
@@ -110,7 +110,6 @@ 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
...
...
@@ -129,6 +128,7 @@ 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
mozilla.components.feature.session.behavior.ToolbarPosition
as
MozacToolbarPosition
/**
...
...
This diff is collapsed.
Click to expand it.
app/src/main/java/org/mozilla/fenix/ext/Activity.kt
+
7
−
0
View file @
fbe73cfc
...
...
@@ -15,6 +15,13 @@ 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
)
// This will be addressed on https://github.com/mozilla-mobile/fenix/issues/17804
...
...
This diff is collapsed.
Click to expand it.
Matthew Finkel
@sysrqb
mentioned in commit
1436c309
·
3 years ago
mentioned in commit
1436c309
mentioned in commit 1436c309c010a2a5f705219deedc34a3cd8c1fbe
Toggle commit list
Matthew Finkel
@sysrqb
mentioned in issue
#40155 (closed)
·
3 years ago
mentioned in issue
#40155 (closed)
mentioned in issue #40155
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment