allow fetching only favorite private contacts
This commit is contained in:
parent
1c97e1b5f5
commit
fdbf29c07e
3 changed files with 5 additions and 2 deletions
|
@ -7,7 +7,7 @@ buildscript {
|
|||
propMinSdkVersion = 21
|
||||
propTargetSdkVersion = propCompileSdkVersion
|
||||
propVersionCode = 1
|
||||
propVersionName = '5.29.9'
|
||||
propVersionName = '5.29.10'
|
||||
kotlin_version = '1.3.72'
|
||||
}
|
||||
|
||||
|
|
|
@ -427,7 +427,9 @@ fun Context.getSharedThemeSync(cursorLoader: CursorLoader): SharedTheme? {
|
|||
|
||||
fun Context.getMyContentProviderCursorLoader() = CursorLoader(this, MyContentProvider.MY_CONTENT_URI, null, null, null, null)
|
||||
|
||||
fun Context.getMyContactsContentProviderCursorLoader() = CursorLoader(this, MyContactsContentProvider.CONTACTS_CONTENT_URI, null, null, null, null)
|
||||
fun Context.getMyContactsCursor() = CursorLoader(this, MyContactsContentProvider.CONTACTS_CONTENT_URI, null, null, null, null)
|
||||
|
||||
fun Context.getMyFavoriteContactsCursor() = CursorLoader(this, MyContactsContentProvider.CONTACTS_CONTENT_URI, null, MyContactsContentProvider.FAVORITES_ONLY, null, null)
|
||||
|
||||
fun Context.getDialogTheme() = if (baseConfig.backgroundColor.getContrastColor() == Color.WHITE) R.style.MyDialogTheme_Dark else R.style.MyDialogTheme
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ class MyContactsContentProvider {
|
|||
private const val AUTHORITY = "com.simplemobiletools.commons.contactsprovider"
|
||||
val CONTACTS_CONTENT_URI = Uri.parse("content://$AUTHORITY/contacts")
|
||||
|
||||
const val FAVORITES_ONLY = "favorites_only"
|
||||
const val COL_RAW_ID = "raw_id"
|
||||
const val COL_CONTACT_ID = "contact_id"
|
||||
const val COL_NAME = "name"
|
||||
|
|
Loading…
Reference in a new issue