Fixed build due to API change in SDK
This commit is contained in:
parent
c6126f3e9c
commit
4624d2698d
1 changed files with 4 additions and 4 deletions
|
@ -23,7 +23,7 @@ import androidx.lifecycle.MediatorLiveData
|
||||||
import androidx.lifecycle.MutableLiveData
|
import androidx.lifecycle.MutableLiveData
|
||||||
import androidx.lifecycle.ViewModel
|
import androidx.lifecycle.ViewModel
|
||||||
import org.linphone.LinphoneApplication.Companion.coreContext
|
import org.linphone.LinphoneApplication.Companion.coreContext
|
||||||
import org.linphone.core.Config
|
import org.linphone.core.ConfiguringState
|
||||||
import org.linphone.core.Core
|
import org.linphone.core.Core
|
||||||
import org.linphone.core.CoreListenerStub
|
import org.linphone.core.CoreListenerStub
|
||||||
import org.linphone.core.tools.Log
|
import org.linphone.core.tools.Log
|
||||||
|
@ -40,15 +40,15 @@ class RemoteProvisioningViewModel : ViewModel() {
|
||||||
private val listener = object : CoreListenerStub() {
|
private val listener = object : CoreListenerStub() {
|
||||||
override fun onConfiguringStatus(
|
override fun onConfiguringStatus(
|
||||||
core: Core,
|
core: Core,
|
||||||
status: Config.ConfiguringState,
|
status: ConfiguringState,
|
||||||
message: String?
|
message: String?
|
||||||
) {
|
) {
|
||||||
fetchInProgress.value = false
|
fetchInProgress.value = false
|
||||||
when (status) {
|
when (status) {
|
||||||
Config.ConfiguringState.Successful -> {
|
ConfiguringState.Successful -> {
|
||||||
fetchSuccessfulEvent.value = Event(true)
|
fetchSuccessfulEvent.value = Event(true)
|
||||||
}
|
}
|
||||||
Config.ConfiguringState.Failed -> {
|
ConfiguringState.Failed -> {
|
||||||
fetchSuccessfulEvent.value = Event(false)
|
fetchSuccessfulEvent.value = Event(false)
|
||||||
}
|
}
|
||||||
else -> {}
|
else -> {}
|
||||||
|
|
Loading…
Reference in a new issue