mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-06-05 21:49:22 +02:00
Do ui setup on ui thread (crashfix)
This commit is contained in:
@@ -392,11 +392,13 @@ class ThreadActivity : SimpleActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
confirm_inserted_number?.setOnClickListener {
|
runOnUiThread {
|
||||||
val number = add_contact_or_number.value
|
confirm_inserted_number?.setOnClickListener {
|
||||||
val phoneNumber = PhoneNumber(number, 0, "", number)
|
val number = add_contact_or_number.value
|
||||||
val contact = SimpleContact(number.hashCode(), number.hashCode(), number, "", arrayListOf(phoneNumber), ArrayList(), ArrayList())
|
val phoneNumber = PhoneNumber(number, 0, "", number)
|
||||||
addSelectedContact(contact)
|
val contact = SimpleContact(number.hashCode(), number.hashCode(), number, "", arrayListOf(phoneNumber), ArrayList(), ArrayList())
|
||||||
|
addSelectedContact(contact)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user