commit | 4a964d983b65871bcc08fe16baea8cf2e0994061 | [log] [tgz] |
---|---|---|
author | Josh Gargus <jjosh@google.com> | Fri May 11 13:18:48 2012 -0700 |
committer | Josh Gargus <jjosh@google.com> | Fri May 11 13:18:48 2012 -0700 |
tree | b3d3bcc0f39c1ee7db31705329d0f1d3916598eb | |
parent | 888ed02de26561573de6b069f4b1386b01972394 [diff] |
Disable "Create new contact" when setting photo from gallery. Bug: 5288751 Change-Id: I8c2c56ca44b5bdca56b7b20a1dfe510ec08a76c3
diff --git a/src/com/android/contacts/activities/AttachPhotoActivity.java b/src/com/android/contacts/activities/AttachPhotoActivity.java index 942f0be..5a26ea2 100644 --- a/src/com/android/contacts/activities/AttachPhotoActivity.java +++ b/src/com/android/contacts/activities/AttachPhotoActivity.java
@@ -83,8 +83,8 @@ mTempPhotoFile = ContactPhotoUtils.generateTempPhotoFile(this); mTempPhotoUri = Uri.fromFile(mTempPhotoFile); - Intent intent = new Intent(Intent.ACTION_GET_CONTENT); - intent.setType(Contacts.CONTENT_ITEM_TYPE); + Intent intent = new Intent(Intent.ACTION_PICK); + intent.setType(Contacts.CONTENT_TYPE); startActivityForResult(intent, REQUEST_PICK_CONTACT); }