Fixed gitlab release build

This commit is contained in:
Sylvain Berfini 2021-02-25 10:03:54 +01:00
parent 251057b293
commit ce6644dbee
2 changed files with 3 additions and 2 deletions

View file

@ -59,9 +59,10 @@ abstract class AbstractPhoneViewModel(val accountCreator: AccountCreator) : View
Log.i("[Assistant] Found prefix from dial plan: ${dialPlan.countryCallingCode}")
prefix.value = "+${dialPlan.countryCallingCode}"
}
if (number != null) {
Log.i("[Assistant] Found phone number: $number")
phoneNumber.value = number
phoneNumber.value = number!!
}
}

View file

@ -68,7 +68,7 @@ class ContactEditorViewModel(val c: Contact?) : ViewModel(), ContactViewModelInt
var syncAccountType: String? = null
init {
contact.value = c
if (c != null) contact.value = c!!
firstName.value = c?.firstName ?: ""
lastName.value = c?.lastName ?: ""
organization.value = c?.organization ?: ""