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

Commit 32c91fdd authored by Brian Attwell's avatar Brian Attwell
Browse files

Fix name-suffix crash on rotation

Make sure to copy the mimetype so that the DataItem gets
serialized properly.

Bug: 16558948
Change-Id: Ia4f25256670d52e415b7e99b765e47c19fdd60c4
parent 778988df
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -155,6 +155,7 @@ public class StructuredNameEditorView extends TextFieldsEditorView {

        mSnapshot.getContentValues().clear();
        mSnapshot.setDisplayName(values.getDisplayName());
        mSnapshot.setMimeType(StructuredPostal.CONTENT_ITEM_TYPE);
        for (String field : structuredNameMap.keySet()) {
            mSnapshot.getContentValues().put(field, structuredNameMap.get(field));
        }