commit | 32c91fdd680c55836e235255fbb5bdba27cb9ca6 | [log] [tgz] |
---|---|---|
author | Brian Attwell <brianattwell@google.com> | Mon Jul 28 14:22:03 2014 -0700 |
committer | Brian Attwell <brianattwell@google.com> | Mon Jul 28 14:22:03 2014 -0700 |
tree | 709dbec4f4be56a436539e9196bbe1dea22c4f82 | |
parent | 778988df6b266c0e0e600254edf7e6f22bf3f596 [diff] |
Fix name-suffix crash on rotation Make sure to copy the mimetype so that the DataItem gets serialized properly. Bug: 16558948 Change-Id: Ia4f25256670d52e415b7e99b765e47c19fdd60c4
diff --git a/src/com/android/contacts/editor/StructuredNameEditorView.java b/src/com/android/contacts/editor/StructuredNameEditorView.java index bf548f6..f9eef94 100644 --- a/src/com/android/contacts/editor/StructuredNameEditorView.java +++ b/src/com/android/contacts/editor/StructuredNameEditorView.java
@@ -155,6 +155,7 @@ 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)); }