do not show errors at fetching contact events

This commit is contained in:
tibbi 2020-10-27 23:34:56 +01:00
parent f07db493ee
commit 986b827575
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ buildscript {
propMinSdkVersion = 21
propTargetSdkVersion = propCompileSdkVersion
propVersionCode = 1
propVersionName = '5.31.11'
propVersionName = '5.31.12'
kotlin_version = '1.4.10'
}

View file

@ -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