Fixed build due to API changes in 5.1 SDK
This commit is contained in:
parent
4ed589d12b
commit
fdaabf6fc0
1 changed files with 7 additions and 7 deletions
|
@ -192,7 +192,7 @@ class AccountSettingsViewModel(val account: Account) : GenericSettingsViewModel(
|
||||||
val disableListener = object : SettingListenerStub() {
|
val disableListener = object : SettingListenerStub() {
|
||||||
override fun onBoolValueChanged(newValue: Boolean) {
|
override fun onBoolValueChanged(newValue: Boolean) {
|
||||||
val params = account.params.clone()
|
val params = account.params.clone()
|
||||||
params.registerEnabled = !newValue
|
params.isRegisterEnabled = !newValue
|
||||||
account.params = params
|
account.params = params
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -239,7 +239,7 @@ class AccountSettingsViewModel(val account: Account) : GenericSettingsViewModel(
|
||||||
}
|
}
|
||||||
|
|
||||||
val params = account.params.clone()
|
val params = account.params.clone()
|
||||||
params.registerEnabled = false
|
params.isRegisterEnabled = false
|
||||||
account.params = params
|
account.params = params
|
||||||
|
|
||||||
if (!registered) {
|
if (!registered) {
|
||||||
|
@ -288,7 +288,7 @@ class AccountSettingsViewModel(val account: Account) : GenericSettingsViewModel(
|
||||||
val outboundProxyListener = object : SettingListenerStub() {
|
val outboundProxyListener = object : SettingListenerStub() {
|
||||||
override fun onBoolValueChanged(newValue: Boolean) {
|
override fun onBoolValueChanged(newValue: Boolean) {
|
||||||
val params = account.params.clone()
|
val params = account.params.clone()
|
||||||
params.outboundProxyEnabled = newValue
|
params.isOutboundProxyEnabled = newValue
|
||||||
account.params = params
|
account.params = params
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -377,7 +377,7 @@ class AccountSettingsViewModel(val account: Account) : GenericSettingsViewModel(
|
||||||
val escapePlusListener = object : SettingListenerStub() {
|
val escapePlusListener = object : SettingListenerStub() {
|
||||||
override fun onBoolValueChanged(newValue: Boolean) {
|
override fun onBoolValueChanged(newValue: Boolean) {
|
||||||
val params = account.params.clone()
|
val params = account.params.clone()
|
||||||
params.dialEscapePlusEnabled = newValue
|
params.isDialEscapePlusEnabled = newValue
|
||||||
account.params = params
|
account.params = params
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -431,11 +431,11 @@ class AccountSettingsViewModel(val account: Account) : GenericSettingsViewModel(
|
||||||
userName.value = params.identityAddress?.username
|
userName.value = params.identityAddress?.username
|
||||||
userId.value = account.findAuthInfo()?.userid
|
userId.value = account.findAuthInfo()?.userid
|
||||||
domain.value = params.identityAddress?.domain
|
domain.value = params.identityAddress?.domain
|
||||||
disable.value = !params.registerEnabled
|
disable.value = !params.isRegisterEnabled
|
||||||
pushNotification.value = params.pushNotificationAllowed
|
pushNotification.value = params.pushNotificationAllowed
|
||||||
pushNotificationsAvailable.value = core.isPushNotificationAvailable
|
pushNotificationsAvailable.value = core.isPushNotificationAvailable
|
||||||
proxy.value = params.serverAddress?.asStringUriOnly()
|
proxy.value = params.serverAddress?.asStringUriOnly()
|
||||||
outboundProxy.value = params.outboundProxyEnabled
|
outboundProxy.value = params.isOutboundProxyEnabled
|
||||||
stunServer.value = params.natPolicy?.stunServer
|
stunServer.value = params.natPolicy?.stunServer
|
||||||
ice.value = params.natPolicy?.iceEnabled()
|
ice.value = params.natPolicy?.iceEnabled()
|
||||||
avpf.value = params.avpfMode == AVPFMode.Enabled
|
avpf.value = params.avpfMode == AVPFMode.Enabled
|
||||||
|
@ -443,7 +443,7 @@ class AccountSettingsViewModel(val account: Account) : GenericSettingsViewModel(
|
||||||
expires.value = params.expires
|
expires.value = params.expires
|
||||||
prefix.value = params.internationalPrefix
|
prefix.value = params.internationalPrefix
|
||||||
dialPrefix.value = params.useInternationalPrefixForCallsAndChats
|
dialPrefix.value = params.useInternationalPrefixForCallsAndChats
|
||||||
escapePlus.value = params.dialEscapePlusEnabled
|
escapePlus.value = params.isDialEscapePlusEnabled
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun initTransportList() {
|
private fun initTransportList() {
|
||||||
|
|
Loading…
Reference in a new issue