mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-21 14:00:56 +01:00
simplifying Telegram contact source public name
This commit is contained in:
parent
457a66c4f2
commit
b28571db15
@ -117,7 +117,7 @@ class ContactsHelper(val context: Context) {
|
|||||||
val type = cursor.getStringValue(RawContacts.ACCOUNT_TYPE) ?: ""
|
val type = cursor.getStringValue(RawContacts.ACCOUNT_TYPE) ?: ""
|
||||||
var publicName = name
|
var publicName = name
|
||||||
if (type == TELEGRAM_PACKAGE) {
|
if (type == TELEGRAM_PACKAGE) {
|
||||||
publicName += " (${context.getString(R.string.telegram)})"
|
publicName = context.getString(R.string.telegram)
|
||||||
}
|
}
|
||||||
|
|
||||||
val source = ContactSource(name, type, publicName)
|
val source = ContactSource(name, type, publicName)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user