simplifying Telegram contact source public name

This commit is contained in:
tibbi 2020-10-27 17:04:33 +01:00
parent 457a66c4f2
commit b28571db15

View file

@ -117,7 +117,7 @@ class ContactsHelper(val context: Context) {
val type = cursor.getStringValue(RawContacts.ACCOUNT_TYPE) ?: ""
var publicName = name
if (type == TELEGRAM_PACKAGE) {
publicName += " (${context.getString(R.string.telegram)})"
publicName = context.getString(R.string.telegram)
}
val source = ContactSource(name, type, publicName)