make custom 'xmpp' protocol in address book case insensitve
fixes #4215
This commit is contained in:
parent
869a135bab
commit
226eb739bd
|
@ -23,13 +23,13 @@ public class JabberIdContact extends AbstractPhoneContact {
|
||||||
ContactsContract.Data.LOOKUP_KEY,
|
ContactsContract.Data.LOOKUP_KEY,
|
||||||
ContactsContract.CommonDataKinds.Im.DATA
|
ContactsContract.CommonDataKinds.Im.DATA
|
||||||
};
|
};
|
||||||
private static final String SELECTION = ContactsContract.Data.MIMETYPE + "=? AND (" + ContactsContract.CommonDataKinds.Im.PROTOCOL + "=? or (" + ContactsContract.CommonDataKinds.Im.PROTOCOL + "=? and " + ContactsContract.CommonDataKinds.Im.CUSTOM_PROTOCOL + "=?))";
|
private static final String SELECTION = ContactsContract.Data.MIMETYPE + "=? AND (" + ContactsContract.CommonDataKinds.Im.PROTOCOL + "=? or (" + ContactsContract.CommonDataKinds.Im.PROTOCOL + "=? and lower(" + ContactsContract.CommonDataKinds.Im.CUSTOM_PROTOCOL + ")=?))";
|
||||||
|
|
||||||
private static final String[] SELECTION_ARGS = {
|
private static final String[] SELECTION_ARGS = {
|
||||||
ContactsContract.CommonDataKinds.Im.CONTENT_ITEM_TYPE,
|
ContactsContract.CommonDataKinds.Im.CONTENT_ITEM_TYPE,
|
||||||
String.valueOf(ContactsContract.CommonDataKinds.Im.PROTOCOL_JABBER),
|
String.valueOf(ContactsContract.CommonDataKinds.Im.PROTOCOL_JABBER),
|
||||||
String.valueOf(ContactsContract.CommonDataKinds.Im.PROTOCOL_CUSTOM),
|
String.valueOf(ContactsContract.CommonDataKinds.Im.PROTOCOL_CUSTOM),
|
||||||
"XMPP"
|
"xmpp"
|
||||||
};
|
};
|
||||||
|
|
||||||
private final Jid jid;
|
private final Jid jid;
|
||||||
|
|
Loading…
Reference in a new issue