Permalink
Browse files

Remove "Add phone# to people" context menu after adding.

By long pressing phone number content in message thread, selecting
"Add phone number to people" option and adding number to Contacts.
Do the procedure again, "Add phone number to people" option still there.
This is because asynchronous get function is used which lead to get wrong
contact information. By calling block mode function to fix this issue.

Change-Id: Id8c6318bfd1ab7eeb846888e185872e8009baf87
Signed-off-by: vincent <vincentcho.cho@gmail.com>
  • Loading branch information...
1 parent 47f7142 commit 1e6711854583986f4bf123faaf4b2f851aaa5b35 vincent committed with mathur Aug 29, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/com/android/mms/ui/ComposeMessageActivity.java
@@ -1086,7 +1086,7 @@ private Uri getContactUriForEmail(String emailAddress) {
}
private Uri getContactUriForPhoneNumber(String phoneNumber) {
- Contact contact = Contact.get(phoneNumber, false);
+ Contact contact = Contact.get(phoneNumber, true);
if (contact.existsInDatabase()) {
return contact.getUri();
}

0 comments on commit 1e67118

Please sign in to comment.