diff options
Diffstat (limited to 'java/com/android/dialer/assisteddialing/AssistedDialingMediatorImpl.java')
-rw-r--r-- | java/com/android/dialer/assisteddialing/AssistedDialingMediatorImpl.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/java/com/android/dialer/assisteddialing/AssistedDialingMediatorImpl.java b/java/com/android/dialer/assisteddialing/AssistedDialingMediatorImpl.java index 1cc9732bb..7214437ab 100644 --- a/java/com/android/dialer/assisteddialing/AssistedDialingMediatorImpl.java +++ b/java/com/android/dialer/assisteddialing/AssistedDialingMediatorImpl.java @@ -56,6 +56,14 @@ final class AssistedDialingMediatorImpl implements AssistedDialingMediator { return true; } + /** Returns the country code in which the library thinks the user typically resides. */ + @Override + @SuppressWarnings("AndroidApiChecker") // Use of optional + @TargetApi(VERSION_CODES.N) + public Optional<String> userHomeCountryCode() { + return locationDetector.getUpperCaseUserHomeCountry(); + } + /** * Returns an Optional of type String containing the transformed number that was provided. The * transformed number should be capable of dialing out of the User's current country and |