In repeat callers, record tel: URIs separately from other people strings.
Then match the phone numbers based on PhoneNumberUtils#areSamePhoneNumber rather than just a direct match, to make sure the same number provided in different formats is still detected correctly.
For all other types of URI/string inputs (mailto:, etc), continue to do a direct match only.
Also do an "any" match rather than "all" -- if there are multiple entries in the extras bundle, allow a single match rather than stringing it all together.
Bug: 183924362
Bug: 203806689
Test: ZenModeFilteringTest
Change-Id: I84870436d5d8c6f24a57d4e54b848730a4c03778
Merged-In: I84870436d5d8c6f24a57d4e54b848730a4c03778
(cherry picked from commit 771f6d64912fda3de7875c49749fd6a0515933cb)
2 files changed