Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit fe7bae5d authored by Gary Mai's avatar Gary Mai
Browse files

Backport cl/159625495

*** Original change description ***

Include the phone number as part of the shortcut id when creating dial
or sms shortcuts

The id was previously just the type of shortcut it was (call or dial)
concatenated with the lookupKey for the contact. So when creating two
call or two sms shortcuts for the same contact with different numbers,
the number for the first one created will always be used since the
shortcut manager would see the same ID already existed and so an
identical shortcut would be placed.
This CL includes the hashCode for the phone URI in the shortcut ID.

Tested:
Manually verified creating dial and sms shortcuts for a contact with two
numbers actually creates two different shortcuts that will call/message
the different numbers.

***

Test: Same verification as the original change.
Bug: 62786173
Change-Id: I9b9ad71401f44dc8e84acde92263d25d0b3ef5c7
parent 9b1b9377
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment