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

Commit 6976549b authored by yaolu's avatar yaolu
Browse files

Show data entered in prefix, middle name and suffix in compact editor

Bug: 32117557

Test: Manually tested that the prefix, middle name, or suffix field
will be shown in compact editor if there is data in that field.

Change-Id: I2c004e221cc9164820ea04b3b8db01d9a2d089c5
parent 9adc9ef5
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -187,24 +187,24 @@ public abstract class BaseAccountType extends AccountType {
                context.getResources().getBoolean(R.bool.config_editor_field_order_primary);

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

        return kind;
    }