Fix database issue with Android < 2.3
This commit is contained in:
parent
974c54258a
commit
76e9811676
1 changed files with 2 additions and 2 deletions
|
@ -184,7 +184,7 @@ public class ApiFivePlus {
|
||||||
+ "' AND " + ContactsContract.CommonDataKinds.SipAddress.SIP_ADDRESS + " IS NOT NULL)";
|
+ "' AND " + ContactsContract.CommonDataKinds.SipAddress.SIP_ADDRESS + " IS NOT NULL)";
|
||||||
} else {
|
} else {
|
||||||
req += " OR (" + Contacts.Data.MIMETYPE + " = '" + CommonDataKinds.Im.CONTENT_ITEM_TYPE
|
req += " OR (" + Contacts.Data.MIMETYPE + " = '" + CommonDataKinds.Im.CONTENT_ITEM_TYPE
|
||||||
+ " AND lower(" + CommonDataKinds.Im.CUSTOM_PROTOCOL + ") = 'sip')";
|
+ "' AND lower(" + CommonDataKinds.Im.CUSTOM_PROTOCOL + ") = 'sip')";
|
||||||
}
|
}
|
||||||
|
|
||||||
return getGeneralContactCursor(cr, req, true);
|
return getGeneralContactCursor(cr, req, true);
|
||||||
|
@ -197,7 +197,7 @@ public class ApiFivePlus {
|
||||||
+ "' AND " + ContactsContract.CommonDataKinds.SipAddress.SIP_ADDRESS + " IS NOT NULL";
|
+ "' AND " + ContactsContract.CommonDataKinds.SipAddress.SIP_ADDRESS + " IS NOT NULL";
|
||||||
} else {
|
} else {
|
||||||
req = Contacts.Data.MIMETYPE + " = '" + CommonDataKinds.Im.CONTENT_ITEM_TYPE
|
req = Contacts.Data.MIMETYPE + " = '" + CommonDataKinds.Im.CONTENT_ITEM_TYPE
|
||||||
+ " AND lower(" + CommonDataKinds.Im.CUSTOM_PROTOCOL + ") = 'sip'";
|
+ "' AND lower(" + CommonDataKinds.Im.CUSTOM_PROTOCOL + ") = 'sip'";
|
||||||
}
|
}
|
||||||
|
|
||||||
return getGeneralContactCursor(cr, req, true);
|
return getGeneralContactCursor(cr, req, true);
|
||||||
|
|
Loading…
Reference in a new issue