fix code error.

The data type was wrong, but it's actually not needed.

Change-Id: I50275fd16c72de42b75f24be6192ca974bd67488
This commit is contained in:
Scott Main
2014-05-06 16:34:30 -07:00
parent 4146d546a4
commit f1bc39b8ae

View File

@ -737,7 +737,7 @@ so you can populate fields of the contact details.
<pre>
public void editContact(Uri contactUri, String email) {
Intent intent = new Intent(Intent.ACTION_EDIT);
intent.setDataAndType(contactUri, Contacts.CONTENT_TYPE);
intent.setData(contactUri);
intent.putExtra(Intents.Insert.EMAIL, email);
if (intent.resolveActivity(getPackageManager()) != null) {
startActivity(intent);