change the default contact placeholder letter from S to A

This commit is contained in:
tibbi 2020-05-04 16:36:24 +02:00
parent 23c75122b7
commit 5ab75aed4b
3 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ android {
}
dependencies {
implementation 'com.simplemobiletools:commons:5.27.2'
implementation 'com.simplemobiletools:commons:5.27.5'
implementation 'joda-time:joda-time:2.10.1'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta4'
implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.5'

View File

@ -31,7 +31,7 @@ abstract class ContactActivity : SimpleActivity() {
protected var currentContactPhotoPath = ""
fun showPhotoPlaceholder(photoView: ImageView) {
val placeholder = BitmapDrawable(resources, getContactLetterIcon(contact?.getNameToDisplay() ?: "S"))
val placeholder = BitmapDrawable(resources, getContactLetterIcon(contact?.getNameToDisplay() ?: "A"))
photoView.setImageDrawable(placeholder)
currentContactPhotoPath = ""
contact?.photo = null

View File

@ -54,7 +54,7 @@ class CallManager {
fun getCallContact(context: Context, callback: (CallContact?) -> Unit) {
val callContact = CallContact("", "", "")
if (call == null) {
if (call == null || call!!.details == null || call!!.details!!.handle == null) {
callback(callContact)
return
}