From b7fb0b979cfce1fc862b8803fb06cc4be66631e1 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 6 Jan 2019 11:16:54 +0100 Subject: [PATCH] improve name highlighting from the dialpad --- .../contacts/pro/adapters/ContactsAdapter.kt | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/adapters/ContactsAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/adapters/ContactsAdapter.kt index 87ab6341..4b3de60a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/adapters/ContactsAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/adapters/ContactsAdapter.kt @@ -1,6 +1,10 @@ package com.simplemobiletools.contacts.pro.adapters import android.graphics.drawable.Drawable +import android.telephony.PhoneNumberUtils +import android.text.Spannable +import android.text.SpannableString +import android.text.style.ForegroundColorSpan import android.view.Menu import android.view.View import android.view.ViewGroup @@ -255,7 +259,14 @@ class ContactsAdapter(activity: SimpleActivity, var contactItems: ArrayList