Skip to content

Commit

Permalink
Remove "Add phone# to people" context menu after adding.
Browse files Browse the repository at this point in the history
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
vincent authored and mathur committed Feb 23, 2014
1 parent 47f7142 commit 1e67118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/android/mms/ui/ComposeMessageActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 1e67118

Please sign in to comment.