fun togglePrefsEnabled(prefList: List<Int>, enabled: Boolean) { for (preference in prefList) { requirePreference<Preference>(preference).isEnabled = enabled } }
Toggle preferences to enable or disable navigation during authentication flows.