Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1132200f authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

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.
parent 732da929
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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.
         */
+7 −0
Original line number Diff line number Diff line
@@ -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.
         */