diff --git a/app/src/main/kotlin/com/tutpro/baresip/Contact.kt b/app/src/main/kotlin/com/tutpro/baresip/Contact.kt index 25e6e67a..4282af68 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/Contact.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/Contact.kt @@ -209,7 +209,7 @@ sealed class Contact { if (contact.avatarImage == null) Log.d(TAG, "Contact $id avatarImage is null") } catch (e: Exception) { - Log.e(TAG, "Could not read avatar image from '$id.img") + Log.e(TAG, "Could not read avatar image from '$id.png") } } BaresipService.baresipContacts.add(contact) diff --git a/app/src/main/kotlin/com/tutpro/baresip/ContactListAdapter.kt b/app/src/main/kotlin/com/tutpro/baresip/ContactListAdapter.kt index 84af1311..6be6d5c5 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/ContactListAdapter.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/ContactListAdapter.kt @@ -172,12 +172,12 @@ class ContactListAdapter(private val ctx: Context, private val rows: ArrayList { val id = contact.id - val avatarFile = File(BaresipService.filesPath, "$id.img") + val avatarFile = File(BaresipService.filesPath, "$id.png") if (avatarFile.exists()) { try { avatarFile.delete() } catch (e: IOException) { - Log.e(TAG, "Could not delete file '$id.img") + Log.e(TAG, "Could not delete file '$id.png") } } Contact.removeBaresipContact(contact)