[fenix] For https://github.com/mozilla-mobile/fenix/issues/18027 - Document shouldUseFixedTopToolbar

pull/600/head
Mugurell 3 years ago
parent f5be19d9fe
commit abcbf2bc4f

@ -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

Loading…
Cancel
Save