Commit d0cb6c0c authored by Mugurell's avatar Mugurell
Browse files

For #18027 - Document shouldUseFixedTopToolbar

parent 0a0f75d2
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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