show an error if trying to save a contact without an account set (last field)

This commit is contained in:
tibbi
2018-01-02 23:40:15 +01:00
parent 22b4dd0a19
commit 287fb4959c
7 changed files with 11 additions and 0 deletions

View File

@ -502,6 +502,11 @@ class ContactActivity : SimpleActivity() {
return
}
if (contact_source.value.isEmpty()) {
toast(R.string.missing_contact_account)
return
}
contact!!.apply {
val oldPhotoUri = photoUri