implement contact name updating

This commit is contained in:
tibbi
2017-12-13 20:52:05 +01:00
parent 96fa9ab8dc
commit a04724a2da
3 changed files with 32 additions and 1 deletions

View File

@ -160,7 +160,17 @@ class ContactActivity : SimpleActivity() {
}
private fun saveContact() {
contact!!.apply {
firstName = contact_first_name.value
middleName = contact_middle_name.value
surname = contact_surname.value
number = contact_number.value
email = contact_email.value
if (ContactsHelper(this@ContactActivity).updateContact(this)) {
finish()
}
}
}
private fun deleteContact() {