adding 2 more crashfixes

This commit is contained in:
tibbi 2021-08-27 19:40:42 +02:00
parent 251df880ff
commit ba8b9c143f
2 changed files with 4 additions and 2 deletions

View File

@ -901,7 +901,7 @@ class EditContactActivity : ContactActivity() {
return return
} }
contact!!.apply { contact?.apply {
val oldPhotoUri = photoUri val oldPhotoUri = photoUri
prefix = contact_prefix.value prefix = contact_prefix.value

View File

@ -92,7 +92,9 @@ class ViewContactActivity : ContactActivity() {
(contact_appbar.layoutParams as RelativeLayout.LayoutParams).topMargin = statusBarHeight (contact_appbar.layoutParams as RelativeLayout.LayoutParams).topMargin = statusBarHeight
contact_toolbar.menu.apply { contact_toolbar.menu.apply {
findItem(R.id.share).setOnMenuItemClickListener { findItem(R.id.share).setOnMenuItemClickListener {
if (fullContact != null) {
shareContact(fullContact!!) shareContact(fullContact!!)
}
true true
} }