Added an extra for sharing a target rectangle extra.

Used to pass a location using screen coordinates when
starting a SHOW_OR_CREATE_CONTACT activity.
This commit is contained in:
Jeff Sharkey
2009-06-04 17:25:51 -07:00
parent 732da9293a
commit 1132200fa1
2 changed files with 16 additions and 0 deletions

View File

@@ -1522,6 +1522,15 @@ public class Contacts {
public static final String EXTRA_CREATE_DESCRIPTION =
ContactsContract.Intents.EXTRA_CREATE_DESCRIPTION;
/**
* Optional extra used with {@link #SHOW_OR_CREATE_CONTACT} to specify a
* dialog location using screen coordinates. When not specified, the
* dialog will be centered.
*
* @hide pending API council review
*/
public static final String EXTRA_TARGET_RECT = ContactsContract.Intents.EXTRA_TARGET_RECT;
/**
* Intents related to the Contacts app UI.
*/

View File

@@ -1374,6 +1374,13 @@ public final class ContactsContract {
public static final String EXTRA_CREATE_DESCRIPTION =
"com.android.contacts.action.CREATE_DESCRIPTION";
/**
* Optional extra used with {@link #SHOW_OR_CREATE_CONTACT} to specify a
* dialog location using screen coordinates. When not specified, the
* dialog will be centered.
*/
public static final String EXTRA_TARGET_RECT = "target_rect";
/**
* Intents related to the Contacts app UI.
*/