Skip to content

Commit

Permalink
For mozilla-mobile#18027 - Document shouldUseFixedTopToolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugurell authored and pkirakosyan committed Aug 4, 2021
1 parent 028e212 commit cd506e4
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 @@ -476,6 +476,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 cd506e4

Please sign in to comment.