allow adding not saved contacts to group threads
This commit is contained in:
parent
8f913867f4
commit
956e798558
2 changed files with 26 additions and 0 deletions
|
|
@ -176,8 +176,18 @@ class ThreadActivity : SimpleActivity() {
|
|||
val selectedContact = currContacts[position]
|
||||
addSelectedContact(selectedContact)
|
||||
}
|
||||
|
||||
add_contact_or_number.onTextChangeListener {
|
||||
confirm_inserted_number.beVisibleIf(it.length > 2)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
confirm_inserted_number.setOnClickListener {
|
||||
val number = add_contact_or_number.value
|
||||
val contact = Contact(number.hashCode(), number, "", number)
|
||||
addSelectedContact(contact)
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupButtons() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue