adding a couple crashfixes
This commit is contained in:
parent
e85dd634e6
commit
3105093272
|
@ -95,13 +95,17 @@ abstract class ContactActivity : SimpleActivity() {
|
|||
|
||||
fun deleteContact() {
|
||||
ConfirmationDialog(this) {
|
||||
ContactsHelper(this).deleteContact(contact!!)
|
||||
finish()
|
||||
if (contact != null) {
|
||||
ContactsHelper(this).deleteContact(contact!!)
|
||||
finish()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun shareContact() {
|
||||
shareContacts(arrayListOf(contact!!))
|
||||
if (contact != null) {
|
||||
shareContacts(arrayListOf(contact!!))
|
||||
}
|
||||
}
|
||||
|
||||
fun trySendSMS() {
|
||||
|
|
|
@ -190,7 +190,7 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
|
|||
|
||||
override fun onQueryTextChange(newText: String): Boolean {
|
||||
if (isSearchOpen) {
|
||||
getCurrentFragment().onSearchQueryChanged(newText)
|
||||
getCurrentFragment()?.onSearchQueryChanged(newText)
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue