mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-18 03:48:08 +00:00
Fix database issue with Android < 2.3
This commit is contained in:
parent
f507c82adc
commit
7c804757f6
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)";
|
||||
} else {
|
||||
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);
|
||||
|
|
@ -197,7 +197,7 @@ public class ApiFivePlus {
|
|||
+ "' AND " + ContactsContract.CommonDataKinds.SipAddress.SIP_ADDRESS + " IS NOT NULL";
|
||||
} else {
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue