diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-01-27 02:09:42 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-01-27 02:09:42 +0000 |
commit | add7d143419d8ada612eb3e0bb2807b0e97dff35 (patch) | |
tree | b49fe3352268663ae05c447f0f088ccdc9df585b /java/com/android/dialer/contactactions | |
parent | e5f1e62682bec9f7bfa019b1820328fe98fa45bf (diff) | |
parent | 26f520249eccdcf2352806ba8d6a54bb8e5045a6 (diff) |
Merge changes I4bdadacc,Ie1f8da1a
* changes:
Reworked the internals of DialerPhoneNumber.
Implemented Post Call in NUI.
Diffstat (limited to 'java/com/android/dialer/contactactions')
-rw-r--r-- | java/com/android/dialer/contactactions/SharedModules.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/com/android/dialer/contactactions/SharedModules.java b/java/com/android/dialer/contactactions/SharedModules.java index 6c6f6b238..7e72863aa 100644 --- a/java/com/android/dialer/contactactions/SharedModules.java +++ b/java/com/android/dialer/contactactions/SharedModules.java @@ -48,14 +48,14 @@ public class SharedModules { } // Skip showing the menu item if there is no number. - String originalNumber = number.getRawInput().getNumber(); - if (TextUtils.isEmpty(originalNumber)) { + String normalizedNumber = number.getNormalizedNumber(); + if (TextUtils.isEmpty(normalizedNumber)) { return; } Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT); intent.setType(ContactsContract.Contacts.CONTENT_ITEM_TYPE); - intent.putExtra(ContactsContract.Intents.Insert.PHONE, originalNumber); + intent.putExtra(ContactsContract.Intents.Insert.PHONE, normalizedNumber); if (!TextUtils.isEmpty(name)) { intent.putExtra(ContactsContract.Intents.Insert.NAME, name); |