From 986b8275758192f1d2a1bb4097cd1f83650272ac Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 27 Oct 2020 23:34:56 +0100 Subject: [PATCH] do not show errors at fetching contact events --- build.gradle | 2 +- .../simplemobiletools/commons/helpers/SimpleContactsHelper.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index e390ef559..ea94e37b7 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { propMinSdkVersion = 21 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 - propVersionName = '5.31.11' + propVersionName = '5.31.12' kotlin_version = '1.4.10' } diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/helpers/SimpleContactsHelper.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/helpers/SimpleContactsHelper.kt index fca10229e..ebe561932 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/helpers/SimpleContactsHelper.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/helpers/SimpleContactsHelper.kt @@ -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