mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
show a WhatsApp logo at WhatsApp sources
This commit is contained in:
@ -534,6 +534,14 @@ class ViewContactActivity : ContactActivity() {
|
||||
contact_source.setOnClickListener {
|
||||
launchEditContact(key)
|
||||
}
|
||||
|
||||
if (value.toLowerCase() == WHATSAPP) {
|
||||
contact_source_image.setImageResource(R.drawable.ic_logo_whatsapp)
|
||||
contact_source_image.beVisible()
|
||||
contact_source_image.setOnClickListener {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -107,6 +107,8 @@ const val TELEGRAM_PACKAGE = "org.telegram.messenger"
|
||||
const val SIGNAL_PACKAGE = "org.thoughtcrime.securesms"
|
||||
const val WHATSAPP_PACKAGE = "com.whatsapp"
|
||||
|
||||
const val WHATSAPP = "whatsapp"
|
||||
|
||||
fun getEmptyLocalContact() = LocalContact(0, "", "", "", "", "", "", null, "", ArrayList(), ArrayList(), ArrayList(), 0, ArrayList(), "", ArrayList(), "", "", ArrayList(), ArrayList())
|
||||
|
||||
fun getProperText(text: String, shouldNormalize: Boolean) = if (shouldNormalize) text.normalizeString() else text
|
||||
|
Reference in New Issue
Block a user