From 225dbf35e0b85d1b88406a194464f2a071f4d243 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 23 Dec 2020 19:05:35 +0100 Subject: [PATCH] updating commons --- app/build.gradle | 8 ++++---- .../calendar/pro/activities/MainActivity.kt | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 40a2cf59a..9a1b3c282 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -64,14 +64,14 @@ android { } dependencies { - implementation 'com.simplemobiletools:commons:5.32.7' + implementation 'com.simplemobiletools:commons:5.32.8' implementation 'joda-time:joda-time:2.10.1' implementation 'androidx.multidex:multidex:2.0.1' implementation 'androidx.constraintlayout:constraintlayout:2.0.4' implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' implementation "androidx.print:print:1.0.0" - kapt 'androidx.room:room-compiler:2.2.5' - implementation 'androidx.room:room-runtime:2.2.5' - annotationProcessor 'androidx.room:room-compiler:2.2.5' + kapt 'androidx.room:room-compiler:2.2.6' + implementation 'androidx.room:room-runtime:2.2.6' + annotationProcessor 'androidx.room:room-compiler:2.2.6' } diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/MainActivity.kt index 71ae939d2..e80e0d578 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/MainActivity.kt @@ -501,7 +501,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener { if (it) { SetRemindersDialog(this) { val reminders = it - val privateCursor = getMyContactsCursor().loadInBackground() + val privateCursor = getMyContactsCursor()?.loadInBackground() ensureBackgroundThread { val privateContacts = MyContactsContentProvider.getSimpleContacts(this, privateCursor) @@ -530,7 +530,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener { if (it) { SetRemindersDialog(this) { val reminders = it - val privateCursor = getMyContactsCursor().loadInBackground() + val privateCursor = getMyContactsCursor()?.loadInBackground() ensureBackgroundThread { val privateContacts = MyContactsContentProvider.getSimpleContacts(this, privateCursor)