add a null check at the contact in ContactActivity
This commit is contained in:
parent
8a4c4f9324
commit
8dd3dd08cd
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ abstract class ContactActivity : SimpleActivity() {
|
||||||
photoView.setPadding(padding, padding, padding, padding)
|
photoView.setPadding(padding, padding, padding, padding)
|
||||||
photoView.setImageBitmap(placeholder)
|
photoView.setImageBitmap(placeholder)
|
||||||
currentContactPhotoPath = ""
|
currentContactPhotoPath = ""
|
||||||
contact!!.photo = null
|
contact?.photo = null
|
||||||
}
|
}
|
||||||
|
|
||||||
fun updateContactPhoto(path: String, photoView: ImageView, bitmap: Bitmap? = null) {
|
fun updateContactPhoto(path: String, photoView: ImageView, bitmap: Bitmap? = null) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue