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

Commit 8a197094 authored by Roman Birg's avatar Roman Birg
Browse files

Revert "Contacts: place local contacts in a special local account"

This reverts commit 1e305c23.
Change-Id: I1ca693696a1f7d13b0ec2a88dc23b89fccb24ffb
parent 03a59f75
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -685,13 +685,6 @@ public class ContactEditorFragment extends Fragment implements
     * @param account may be null to signal a device-local contact should be created.
     */
    private void createContact(AccountWithDataSet account) {
        if (account == null) {
            // local account!
            String localAccountName = mContext.getString(
                    com.android.contacts.common.R.string.local_storage_account);
            account = new AccountWithDataSet(localAccountName, AccountType.LOCAL_ACCOUNT, null);
        }

        final AccountTypeManager accountTypes = AccountTypeManager.getInstance(mContext);
        final AccountType accountType =
                accountTypes.getAccountType(account != null ? account.type : null,