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

Commit e099fbf7 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Fix duplicated DataKinds for external account types

Bug 5430460

Change-Id: I99228b7dcfaa7bc7af0c2eaac2210398ebaa2e1e
parent e810bdb4
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -121,11 +121,13 @@ public class ExternalAccountType extends BaseAccountType {
        iconRes = resolveExternalResId(context, mAccountTypeIconAttribute,
                this.resPackageName, ATTR_ACCOUNT_ICON);

        if (!mHasEditSchema) {
            // Bring in name and photo from fallback source, which are non-optional
            addDataKindStructuredName(context);
            addDataKindDisplayName(context);
            addDataKindPhoneticName(context);
            addDataKindPhoto(context);
        }

        // If we reach this point, the account type has been successfully initialized.
        mInitSuccessful = true;