mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-01-07 05:12:42 +01:00
add a null check at the contact in ContactActivity
This commit is contained in:
parent
8a4c4f9324
commit
8dd3dd08cd
@ -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 New Issue
Block a user