New interface to pick a contact as attachment
New ContactMediaChooser allows the user to pick a contact from contacts apps as attachment. Test: Manual Change-Id: Idb00cd8a3164a3cac859947affd5cbcc7e41b8c2 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
This commit is contained in:
@@ -243,6 +243,19 @@ public class UIIntentsImpl extends UIIntents {
|
||||
fragment.startActivityForResult(intent, REQUEST_PICK_MEDIA_FROM_DOCUMENT_PICKER);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void launchContactCardPicker(final Fragment fragment) {
|
||||
final Intent intent = new Intent(Intent.ACTION_PICK);
|
||||
intent.setType(Contacts.CONTENT_TYPE);
|
||||
|
||||
try {
|
||||
fragment.startActivityForResult(intent, REQUEST_PICK_CONTACT_CARD);
|
||||
} catch (final ActivityNotFoundException ex) {
|
||||
LogUtil.w(LogUtil.BUGLE_TAG, "Couldn't find activity:", ex);
|
||||
UiUtils.showToastAtBottom(R.string.activity_not_found_message);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void launchPeopleAndOptionsActivity(final Activity activity,
|
||||
final String conversationId) {
|
||||
|
||||
Reference in New Issue
Block a user