diff options
author | Scott Main <smain@google.com> | 2014-05-06 23:57:08 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-06 23:57:08 +0000 |
commit | b5342f965b19a053b093f554930893b91c2e763e (patch) | |
tree | 44a7939c695cad2ff21b1234c055d3b0fd86ece1 /docs | |
parent | 1a556b996156b71bdbb60f6f9cd7bd3e16947a4f (diff) | |
parent | fe99729539c8e51ce13c88dd9c999a458032356a (diff) | |
download | frameworks_base-b5342f965b19a053b093f554930893b91c2e763e.zip frameworks_base-b5342f965b19a053b093f554930893b91c2e763e.tar.gz frameworks_base-b5342f965b19a053b093f554930893b91c2e763e.tar.bz2 |
am fe997295: am 01dc133b: am f1bc39b8: fix code error. The data type was wrong, but it\'s actually not needed.
* commit 'fe99729539c8e51ce13c88dd9c999a458032356a':
fix code error. The data type was wrong, but it's actually not needed.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/html/guide/components/intents-common.jd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/html/guide/components/intents-common.jd b/docs/html/guide/components/intents-common.jd index a0f7ce1..b4813a5 100644 --- a/docs/html/guide/components/intents-common.jd +++ b/docs/html/guide/components/intents-common.jd @@ -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); |