adding 2 more crashfixes
This commit is contained in:
parent
251df880ff
commit
ba8b9c143f
|
@ -901,7 +901,7 @@ class EditContactActivity : ContactActivity() {
|
|||
return
|
||||
}
|
||||
|
||||
contact!!.apply {
|
||||
contact?.apply {
|
||||
val oldPhotoUri = photoUri
|
||||
|
||||
prefix = contact_prefix.value
|
||||
|
|
|
@ -92,7 +92,9 @@ class ViewContactActivity : ContactActivity() {
|
|||
(contact_appbar.layoutParams as RelativeLayout.LayoutParams).topMargin = statusBarHeight
|
||||
contact_toolbar.menu.apply {
|
||||
findItem(R.id.share).setOnMenuItemClickListener {
|
||||
shareContact(fullContact!!)
|
||||
if (fullContact != null) {
|
||||
shareContact(fullContact!!)
|
||||
}
|
||||
true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue