Loading src/com/android/contacts/editor/KindSectionDataList.java +6 −4 Original line number Diff line number Diff line Loading @@ -105,13 +105,15 @@ public class KindSectionDataList extends ArrayList<KindSectionData> { // Just return the first writable entry. for (KindSectionData kindSectionData : this) { if (kindSectionData.getAccountType().areContactsWritable()) { RawContactModifier.ensureKindExists(kindSectionData.getRawContactDelta(), kindSectionData.getAccountType(), ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE); vlog(mimeType + ": falling back to first kind section data to write"); RawContactModifier.ensureKindExists(kindSectionData.getRawContactDelta(), kindSectionData.getAccountType(), mimeType); if (kindSectionData.getValuesDeltas() != null && !kindSectionData.getValuesDeltas().isEmpty()) { return new Pair<>(kindSectionData, kindSectionData.getValuesDeltas().get(0)); } } } wlog(mimeType+ ": no writable kind section data found"); return null; Loading Loading
src/com/android/contacts/editor/KindSectionDataList.java +6 −4 Original line number Diff line number Diff line Loading @@ -105,13 +105,15 @@ public class KindSectionDataList extends ArrayList<KindSectionData> { // Just return the first writable entry. for (KindSectionData kindSectionData : this) { if (kindSectionData.getAccountType().areContactsWritable()) { RawContactModifier.ensureKindExists(kindSectionData.getRawContactDelta(), kindSectionData.getAccountType(), ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE); vlog(mimeType + ": falling back to first kind section data to write"); RawContactModifier.ensureKindExists(kindSectionData.getRawContactDelta(), kindSectionData.getAccountType(), mimeType); if (kindSectionData.getValuesDeltas() != null && !kindSectionData.getValuesDeltas().isEmpty()) { return new Pair<>(kindSectionData, kindSectionData.getValuesDeltas().get(0)); } } } wlog(mimeType+ ": no writable kind section data found"); return null; Loading