do not show errors at fetching contact events
This commit is contained in:
parent
f07db493ee
commit
986b827575
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ buildscript {
|
|||
propMinSdkVersion = 21
|
||||
propTargetSdkVersion = propCompileSdkVersion
|
||||
propVersionCode = 1
|
||||
propVersionName = '5.31.11'
|
||||
propVersionName = '5.31.12'
|
||||
kotlin_version = '1.4.10'
|
||||
}
|
||||
|
||||
|
|
|
@ -174,7 +174,7 @@ class SimpleContactsHelper(val context: Context) {
|
|||
val requiredType = if (getBirthdays) CommonDataKinds.Event.TYPE_BIRTHDAY.toString() else CommonDataKinds.Event.TYPE_ANNIVERSARY.toString()
|
||||
val selectionArgs = arrayOf(CommonDataKinds.Event.CONTENT_ITEM_TYPE, requiredType)
|
||||
|
||||
context.queryCursor(uri, projection, selection, selectionArgs, showErrors = true) { cursor ->
|
||||
context.queryCursor(uri, projection, selection, selectionArgs) { cursor ->
|
||||
val id = cursor.getIntValue(Data.RAW_CONTACT_ID)
|
||||
val startDate = cursor.getStringValue(CommonDataKinds.Event.START_DATE) ?: return@queryCursor
|
||||
|
||||
|
|
Loading…
Reference in a new issue