append "(Telegram)" after its contact source to make it clearer

This commit is contained in:
tibbi 2018-10-26 16:44:27 +02:00
parent ef3a61714a
commit 458b735eb5
2 changed files with 4 additions and 0 deletions

View File

@ -819,6 +819,9 @@ class ContactsHelper(val activity: Activity) {
accounts.forEach {
if (ContentResolver.getIsSyncable(it, ContactsContract.AUTHORITY) == 1) {
val contactSource = ContactSource(it.name, it.type)
if (it.type == TELEGRAM_PACKAGE) {
contactSource.name += " (${activity.getString(R.string.telegram)})"
}
sources.add(contactSource)
}
}

View File

@ -10,6 +10,7 @@
<string name="hangouts">Hangouts</string>
<string name="icq">ICQ</string>
<string name="jabber">Jabber</string>
<string name="telegram">Telegram</string>
<!-- Release notes -->
<string name="release_32">Added a simple dialpad, dialer will come soon</string>