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

Commit 54fcd4c8 authored by Daisuke Miyakawa's avatar Daisuke Miyakawa
Browse files

Add params for primary account to ContactsContract

It is intentional to not use "primary_account_name" and
"primary_account_type" here. See Issue 3510087 and 4260119

Bug: 3510087
Bug: 4260119
Change-Id: I2a22be56822226e3ea6b6f2ef23bb77816d0345a
parent fcdebf88
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
     */