No longer require STUN server to be set to enable ICE
This commit is contained in:
parent
11c33bb1b0
commit
4a4ce57864
2 changed files with 1 additions and 3 deletions
|
@ -313,7 +313,6 @@ class AccountSettingsViewModel(val account: Account) : GenericSettingsViewModel(
|
||||||
newNatPolicy.isStunEnabled = newValue.isNotEmpty()
|
newNatPolicy.isStunEnabled = newValue.isNotEmpty()
|
||||||
params.natPolicy = newNatPolicy
|
params.natPolicy = newNatPolicy
|
||||||
account.params = params
|
account.params = params
|
||||||
if (newValue.isEmpty()) ice.value = false
|
|
||||||
stunServer.value = newValue
|
stunServer.value = newValue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -188,8 +188,7 @@
|
||||||
layout="@layout/settings_widget_switch"
|
layout="@layout/settings_widget_switch"
|
||||||
linphone:title="@{@string/account_settings_ice_title}"
|
linphone:title="@{@string/account_settings_ice_title}"
|
||||||
linphone:listener="@{viewModel.iceListener}"
|
linphone:listener="@{viewModel.iceListener}"
|
||||||
linphone:checked="@={viewModel.ice}"
|
linphone:checked="@={viewModel.ice}"/>
|
||||||
linphone:enabled="@{viewModel.stunServer.length() > 0}"/>
|
|
||||||
|
|
||||||
<include
|
<include
|
||||||
layout="@layout/settings_widget_switch"
|
layout="@layout/settings_widget_switch"
|
||||||
|
|
Loading…
Reference in a new issue