Add phone number type to contacts DB to fix HTC bug.

Fixes #3784
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-07-24 10:39:29 -07:00
parent 20313127f5
commit 156a86013f

View File

@ -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());