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

Commit 191a66d2 authored by Liefu Liu's avatar Liefu Liu Committed by Android (Google) Code Review
Browse files

Merge "Privatize the constructor of DefaultAccountAndState." into main

parents 441143d1 907c7f48
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -37580,7 +37580,6 @@ package android.provider {
  }
  @FlaggedApi("android.provider.new_default_account_api_enabled") public static final class ContactsContract.RawContacts.DefaultAccount.DefaultAccountAndState {
    ctor public ContactsContract.RawContacts.DefaultAccount.DefaultAccountAndState(int, @Nullable android.accounts.Account);
    method @Nullable public android.accounts.Account getAccount();
    method public int getState();
    method @NonNull public static android.provider.ContactsContract.RawContacts.DefaultAccount.DefaultAccountAndState ofCloud(@NonNull android.accounts.Account);
+1 −1
Original line number Diff line number Diff line
@@ -3151,7 +3151,7 @@ public final class ContactsContract {
                 *                {@link #DEFAULT_ACCOUNT_STATE_CLOUD} or
                 *                {@link #DEFAULT_ACCOUNT_STATE_SIM}, or null otherwise.
                 */
                public DefaultAccountAndState(@DefaultAccountState int state,
                private DefaultAccountAndState(@DefaultAccountState int state,
                        @Nullable Account account) {
                    if (!isValidDefaultAccountState(state)) {
                        throw new IllegalArgumentException("Invalid default account state.");