adding 2 more crashfixes
This commit is contained in:
parent
251df880ff
commit
ba8b9c143f
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue