From 458b735eb5064ffbf52e6dbe0a98208dd36f45d3 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 26 Oct 2018 16:44:27 +0200 Subject: [PATCH] append "(Telegram)" after its contact source to make it clearer --- .../com/simplemobiletools/contacts/helpers/ContactsHelper.kt | 3 +++ app/src/main/res/values/donottranslate.xml | 1 + 2 files changed, 4 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/ContactsHelper.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/ContactsHelper.kt index afb65611..f9fb5337 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/ContactsHelper.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/helpers/ContactsHelper.kt @@ -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) } } diff --git a/app/src/main/res/values/donottranslate.xml b/app/src/main/res/values/donottranslate.xml index c3d9f092..33ccc468 100644 --- a/app/src/main/res/values/donottranslate.xml +++ b/app/src/main/res/values/donottranslate.xml @@ -10,6 +10,7 @@ Hangouts ICQ Jabber + Telegram Added a simple dialpad, dialer will come soon