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

Commit a6c7a97e authored by Gary Mai's avatar Gary Mai
Browse files

Fix ExternalAccountTypeTests

The KindBuilder needs to match the BaseAccountType methods.

Test: Ran unit tests
Change-Id: I9d654b618c1e6f56ce475f896f056f13af1c157d
parent fd14bd2e
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -947,24 +947,24 @@ public abstract class BaseAccountType extends AccountType {
            kinds.add(kn);

            kn.fieldList.add(new EditField(StructuredName.PREFIX, R.string.name_prefix,
                    FLAGS_PERSON_NAME).setLongForm(true));
                    FLAGS_PERSON_NAME).setOptional(true));
            if (!displayOrderPrimary) {
                kn.fieldList.add(new EditField(StructuredName.FAMILY_NAME, R.string.name_family,
                        FLAGS_PERSON_NAME));
                kn.fieldList.add(new EditField(StructuredName.MIDDLE_NAME, R.string.name_middle,
                        FLAGS_PERSON_NAME).setLongForm(true));
                        FLAGS_PERSON_NAME).setOptional(true));
                kn.fieldList.add(new EditField(StructuredName.GIVEN_NAME, R.string.name_given,
                        FLAGS_PERSON_NAME));
            } else {
                kn.fieldList.add(new EditField(StructuredName.GIVEN_NAME, R.string.name_given,
                        FLAGS_PERSON_NAME));
                kn.fieldList.add(new EditField(StructuredName.MIDDLE_NAME, R.string.name_middle,
                        FLAGS_PERSON_NAME).setLongForm(true));
                        FLAGS_PERSON_NAME).setOptional(true));
                kn.fieldList.add(new EditField(StructuredName.FAMILY_NAME, R.string.name_family,
                        FLAGS_PERSON_NAME));
            }
            kn.fieldList.add(new EditField(StructuredName.SUFFIX, R.string.name_suffix,
                    FLAGS_PERSON_NAME).setLongForm(true));
                    FLAGS_PERSON_NAME).setOptional(true));

            // Phonetic name
            final DataKind kp = newDataKind(context, parser, attrs, true,