No longer require STUN server to be set to enable ICE

This commit is contained in:
Sylvain Berfini 2023-12-12 10:38:47 +01:00
parent 11c33bb1b0
commit 4a4ce57864
2 changed files with 1 additions and 3 deletions

View file

@ -313,7 +313,6 @@ class AccountSettingsViewModel(val account: Account) : GenericSettingsViewModel(
newNatPolicy.isStunEnabled = newValue.isNotEmpty()
params.natPolicy = newNatPolicy
account.params = params
if (newValue.isEmpty()) ice.value = false
stunServer.value = newValue
}
}

View file

@ -188,8 +188,7 @@
layout="@layout/settings_widget_switch"
linphone:title="@{@string/account_settings_ice_title}"
linphone:listener="@{viewModel.iceListener}"
linphone:checked="@={viewModel.ice}"
linphone:enabled="@{viewModel.stunServer.length() > 0}"/>
linphone:checked="@={viewModel.ice}"/>
<include
layout="@layout/settings_widget_switch"