Add "geoDescription" to CallerInfo
As of change https://android-git.corp.google.com/g/111296 the libphonenumber library now provides an API ("PhoneNumberOfflineGeocoder") to look up a geographical description string for a given number. This change adds a new CallerInfo field called "geoDescription", and uses the PhoneNumberOfflineGeocoder to look it up (if the contact lookup fails) during the CallerInfoAsyncQuery sequence. See https://android-git.corp.google.com/g/114715 for the corresponding change under apps/Phone, to display this string (along with the raw number) in the incoming-call UI. Also some other minor cleanup: - fixed spelling of the "normalizedNumber" field - tiny javadoc and code style cleanup - slight CallManager and CallerInfo debug output cleanup Bug: 4595580 Change-Id: I900d8f48e953d1b24983602cb5467a5c6a6c518a
Loading
Please register or sign in to comment