diff --git a/app/build.gradle b/app/build.gradle index c487289d1..863a97758 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -58,7 +58,7 @@ android { } dependencies { - implementation 'com.simplemobiletools:commons:5.16.17' + implementation 'com.simplemobiletools:commons:5.17.17' implementation 'joda-time:joda-time:2.10.1' implementation 'androidx.multidex:multidex:2.0.1' implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta2' diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/extensions/Context.kt index 215ab0b0e..7de9cb341 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/extensions/Context.kt @@ -197,7 +197,11 @@ fun Context.notifyEvent(originalEvent: Event) { ensureBackgroundThread { val notification = getNotification(pendingIntent, event, content) val notificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager - notificationManager.notify(event.id!!.toInt(), notification) + try { + notificationManager.notify(event.id!!.toInt(), notification) + } catch (e: Exception) { + showErrorToast(e) + } } }