SimpleMobileTools / Simple-Dialer

A handy phone call manager with phonebook, number blocking and multi-SIM support
https://www.simplemobiletools.com/
GNU General Public License v3.0
621 stars 249 forks source link

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

Open Fironet opened 1 year ago

Fironet commented 1 year ago

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 commented 8 months ago

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.