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.ViewModel
|
||||
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.CoreListenerStub
|
||||
import org.linphone.core.tools.Log
|
||||
|
@ -40,15 +40,15 @@ class RemoteProvisioningViewModel : ViewModel() {
|
|||
private val listener = object : CoreListenerStub() {
|
||||
override fun onConfiguringStatus(
|
||||
core: Core,
|
||||
status: Config.ConfiguringState,
|
||||
status: ConfiguringState,
|
||||
message: String?
|
||||
) {
|
||||
fetchInProgress.value = false
|
||||
when (status) {
|
||||
Config.ConfiguringState.Successful -> {
|
||||
ConfiguringState.Successful -> {
|
||||
fetchSuccessfulEvent.value = Event(true)
|
||||
}
|
||||
Config.ConfiguringState.Failed -> {
|
||||
ConfiguringState.Failed -> {
|
||||
fetchSuccessfulEvent.value = Event(false)
|
||||
}
|
||||
else -> {}
|
||||
|
|
Loading…
Reference in a new issue