updating commons

This commit is contained in:
tibbi 2022-06-24 23:34:58 +02:00
parent 728a2f19ba
commit 82643fdafb
2 changed files with 11 additions and 9 deletions

View File

@ -63,7 +63,7 @@ android {
} }
dependencies { dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:ac7e52249a' implementation 'com.github.SimpleMobileTools:Simple-Commons:4aa0b9aaad'
implementation 'com.googlecode.ez-vcard:ez-vcard:0.11.3' implementation 'com.googlecode.ez-vcard:ez-vcard:0.11.3'
implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61' implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'

View File

@ -17,14 +17,16 @@ class MyContactsContentProvider : ContentProvider() {
if (context == null || !context!!.config.showPrivateContacts) { if (context == null || !context!!.config.showPrivateContacts) {
return null return null
} else { } else {
val matrixCursor = MatrixCursor(arrayOf( val matrixCursor = MatrixCursor(
MyContactsContentProvider.COL_RAW_ID, arrayOf(
MyContactsContentProvider.COL_CONTACT_ID, MyContactsContentProvider.COL_RAW_ID,
MyContactsContentProvider.COL_NAME, MyContactsContentProvider.COL_CONTACT_ID,
MyContactsContentProvider.COL_PHOTO_URI, MyContactsContentProvider.COL_NAME,
MyContactsContentProvider.COL_PHONE_NUMBERS, MyContactsContentProvider.COL_PHOTO_URI,
MyContactsContentProvider.COL_BIRTHDAYS, MyContactsContentProvider.COL_PHONE_NUMBERS,
MyContactsContentProvider.COL_ANNIVERSARIES) MyContactsContentProvider.COL_BIRTHDAYS,
MyContactsContentProvider.COL_ANNIVERSARIES
)
) )
val favoritesOnly = selectionArgs?.getOrNull(0)?.equals("1") ?: false val favoritesOnly = selectionArgs?.getOrNull(0)?.equals("1") ?: false