For #18027 - Document shouldUseFixedTopToolbar

upstream-sync
Mugurell 3 years ago
parent 0a0f75d2ab
commit d0cb6c0c00

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