From e0c22fd6a101d70fcbea02b92ed763d6e80d68f5 Mon Sep 17 00:00:00 2001 From: ibrahim-iqbal Date: Tue, 22 Sep 2026 10:48:38 +0530 Subject: [PATCH] fix: include company and job in speed dial contact search (#689) The Manage Speed Dial contact picker only searched Contact.name, so contacts stored with only a company (and no first/last name) never matched the query. Mirror the multi-field search already used in ContactsFragment so nickname, organization company, and job position match too, with the same diacritic-aware normalization. --- .../org/fossify/phone/dialogs/SelectContactDialog.kt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/org/fossify/phone/dialogs/SelectContactDialog.kt b/app/src/main/kotlin/org/fossify/phone/dialogs/SelectContactDialog.kt index 20e556390..b4c4d0689 100644 --- a/app/src/main/kotlin/org/fossify/phone/dialogs/SelectContactDialog.kt +++ b/app/src/main/kotlin/org/fossify/phone/dialogs/SelectContactDialog.kt @@ -6,6 +6,7 @@ import android.widget.ImageView import androidx.activity.addCallback import androidx.appcompat.app.AlertDialog import org.fossify.commons.extensions.* +import org.fossify.commons.helpers.getProperText import org.fossify.commons.models.contacts.Contact import org.fossify.commons.views.MySearchMenu import org.fossify.phone.R @@ -98,7 +99,14 @@ class SelectContactDialog(val activity: SimpleActivity, val contacts: List + getProperText(contact.getNameToDisplay(), shouldNormalize).contains(fixedText, true) || + getProperText(contact.nickname, shouldNormalize).contains(fixedText, true) || + getProperText(contact.organization.company, shouldNormalize).contains(fixedText, true) || + getProperText(contact.organization.jobPosition, shouldNormalize).contains(fixedText, true) + } } checkPlaceholderVisibility(contactsToShow)