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

Commit 52b95266 authored by Daisuke Miyakawa's avatar Daisuke Miyakawa Committed by Android (Google) Code Review
Browse files

Merge "Add params for primary account to ContactsContract"

parents 5f2cff40 54fcd4c8
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -143,6 +143,27 @@ public final class ContactsContract {
     */
    public static final String LIMIT_PARAM_KEY = "limit";

    /**
     * A query parameter specifing a primary account. This parameter should be used with
     * {@link #PRIMARY_ACCOUNT_TYPE}. The contacts provider handling a query may rely on
     * this information to optimize its query results.
     *
     * For example, in an email composition screen, its implementation can specify an account when
     * obtaining possible recipients, letting the provider know which account is selected during
     * the composition. The provider may use the "primary account" information to optimize
     * the search result.
     * @hide
     */
    public static final String PRIMARY_ACCOUNT_NAME = "name_for_primary_account";

    /**
     * A query parameter specifing a primary account. This parameter should be used with
     * {@link #PRIMARY_ACCOUNT_NAME}. See the doc in {@link #PRIMARY_ACCOUNT_NAME}.
     * @hide
     */
    public static final String PRIMARY_ACCOUNT_TYPE = "type_for_primary_account";


    /**
     * @hide
     */