Look up phone numbers associated with a NotificationRecord's contact URI.
Then, when a call comes in, store the additional phone numbers in the NotificationRecord (if any) in the repeat callers map. This allows us to store those phone numbers in the repeat callers data to confirm whether future calls from that contact's phone are considered "repeat" when a caller passes in the phone number. This matches on any number that belongs to the contact, and not just the one used to give in the phone call (as contact lookup seems not to distinguish). Bug: 183924362 Bug: 203806689 Test: ValidateNotificationPeopleTest; NotificationRecordTest; ZenModeFilteringTest; manually confirmed that the phone rings audibly when repeat callers is allowed and a contact calls Change-Id: I83cc7fc036a3962d2468557d41b546f40a3cfbcf Merged-In: I83cc7fc036a3962d2468557d41b546f40a3cfbcf (cherry picked from commit fa8fd0d9)
Loading
Please register or sign in to comment