mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-02-18 04:30:55 +01:00
do not allow removing the original contact from ThreadActivity
This commit is contained in:
parent
c4f209b8ff
commit
4405495e6b
@ -142,8 +142,10 @@ class ThreadActivity : SimpleActivity() {
|
|||||||
layoutInflater.inflate(R.layout.item_selected_contact, null).apply {
|
layoutInflater.inflate(R.layout.item_selected_contact, null).apply {
|
||||||
selected_contact_name.text = contact.name
|
selected_contact_name.text = contact.name
|
||||||
selected_contact_remove.setOnClickListener {
|
selected_contact_remove.setOnClickListener {
|
||||||
|
if (contact.id != selectedContacts.first().id) {
|
||||||
removeSelectedContact(contact.id)
|
removeSelectedContact(contact.id)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
views.add(this)
|
views.add(this)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user