From 156a86013f4ca8c5102110ccc71daa4d3887fa4c Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Fri, 24 Jul 2015 10:39:29 -0700 Subject: [PATCH] Add phone number type to contacts DB to fix HTC bug. Fixes #3784 // FREEBIE --- src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java b/src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java index ceb354898f..6ce2f45af4 100644 --- a/src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java +++ b/src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java @@ -132,6 +132,7 @@ public class ContactsDatabase { .withValueBackReference(ContactsContract.CommonDataKinds.Phone.RAW_CONTACT_ID, index) .withValue(ContactsContract.Data.MIMETYPE, ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE) .withValue(ContactsContract.CommonDataKinds.Phone.NUMBER, e164number) + .withValue(ContactsContract.CommonDataKinds.Phone.TYPE, ContactsContract.CommonDataKinds.Phone.TYPE_OTHER) .withValue(ContactsContract.Data.SYNC2, "__TS") .build());