append "(Telegram)" after its contact source to make it clearer
This commit is contained in:
parent
ef3a61714a
commit
458b735eb5
|
@ -819,6 +819,9 @@ class ContactsHelper(val activity: Activity) {
|
||||||
accounts.forEach {
|
accounts.forEach {
|
||||||
if (ContentResolver.getIsSyncable(it, ContactsContract.AUTHORITY) == 1) {
|
if (ContentResolver.getIsSyncable(it, ContactsContract.AUTHORITY) == 1) {
|
||||||
val contactSource = ContactSource(it.name, it.type)
|
val contactSource = ContactSource(it.name, it.type)
|
||||||
|
if (it.type == TELEGRAM_PACKAGE) {
|
||||||
|
contactSource.name += " (${activity.getString(R.string.telegram)})"
|
||||||
|
}
|
||||||
sources.add(contactSource)
|
sources.add(contactSource)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
<string name="hangouts">Hangouts</string>
|
<string name="hangouts">Hangouts</string>
|
||||||
<string name="icq">ICQ</string>
|
<string name="icq">ICQ</string>
|
||||||
<string name="jabber">Jabber</string>
|
<string name="jabber">Jabber</string>
|
||||||
|
<string name="telegram">Telegram</string>
|
||||||
|
|
||||||
<!-- Release notes -->
|
<!-- Release notes -->
|
||||||
<string name="release_32">Added a simple dialpad, dialer will come soon</string>
|
<string name="release_32">Added a simple dialpad, dialer will come soon</string>
|
||||||
|
|
Loading…
Reference in New Issue