split the name between first/middle/sur name

This commit is contained in:
tibbi
2017-12-13 13:24:14 +01:00
parent 6ee9a23897
commit 791dbb2960
4 changed files with 102 additions and 30 deletions

View File

@ -135,7 +135,7 @@ class ContactActivity : SimpleActivity() {
private fun setupEditContact() {
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN)
supportActionBar?.title = resources.getString(R.string.edit_contact)
contact_name.setText(contact!!.name)
contact_name.setText(contact!!.firstName)
contact_number.setText(contact!!.number)
contact_email.setText(contact!!.email)
}
@ -143,7 +143,7 @@ class ContactActivity : SimpleActivity() {
private fun setupNewContact() {
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE)
supportActionBar?.title = resources.getString(R.string.new_contact)
contact = Contact(0, "", "", "", "", "")
contact = Contact(0, "", "", "", "", "", "", "")
}
private fun applyPhotoPlaceholder() {