Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
For #18027 - Document shouldUseFixedTopToolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugurell committed Feb 23, 2021
1 parent 0a0f75d commit d0cb6c0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/src/main/java/org/mozilla/fenix/utils/Settings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,13 @@ class Settings(private val appContext: Context) : PreferencesHolder {
true
)

/**
* Prefer to use a fixed top toolbar when:
* - a talkback service is enabled or
* - switch access is enabled.
*
* This is automatically inferred based on the current system status. Not a setting in our app.
*/
val shouldUseFixedTopToolbar: Boolean
get() {
return touchExplorationIsEnabled || switchServiceIsEnabled
Expand Down

0 comments on commit d0cb6c0

Please sign in to comment.