Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrectly matches shorter dialed number to longer length contact sub-string #683

Open
Fironet opened this issue Sep 2, 2023 · 1 comment
Labels

Comments

@Fironet
Copy link

Fironet commented Sep 2, 2023

What seems to be occurring is a shorter length number is being matched to a longer length existing contact and Dialer displaying the contact as who is being called, despite only the shorter length number being actually dialed.

Two issues arise:

  1. Dialer randomly incorrectly displays the contact as the name of the shorter number being dialed which isn't in my contacts.
  2. Dialer consistently displays the contact name in the Call history for all calls of the shorter number dialed. This can be confirmed it's incorrect by pressing the three dot menu beside a call history item and selecting 'Show call details' (which displays the shorter number rather than the actual contact's number).

For background to this, some weeks ago I imported a contact via (a larger) VCF that had the following number syntax (digits changed for privacy) into Simple Tools Contacts (using the store contacts as 'Phone storage (not visible to other apps)' rather than 'Device' option):

N:;Example Contact Name;;;
TEL;TYPE=CELL:4 5679 399

Yesterday, when I dialed 9399 (a service provider number which isn't in my contacts) using Simple Tools Dialer, Simple Tools Dialer mistakenly matched the dialed number to the Example Contact Name contact instead, as displayed both during the call for the name and also as shown in the call history tab of the app.

Seemingly this is because the last four digits are the same as the longer number stored in that existing contact.

Note: the name as displayed during the call isn't consistently reproducible however the name as displayed in the call history is consistent and displays the contact name rather than the dialed number which isn't in the contacts.


Dialer app version: 5.18.0 (F-Droid)
Contacts app version: 6.22.4 (F-Droid)
OS: Android 13 (LineageOS 20)


I'm not sure if this bug is from Dialer or Contacts but since it affected the name displayed when dialing a number and the displayed call history I've posted it here.

@NeonSludge
Copy link

Can confirm this is still the case in Dialer 5.18.1.
I have a contact whose phone number ends with 4 digits that also form a short number for a service provider.
When I receive a call from that short number Dialer displays the contact's name instead of the short number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants