From b0a040a4cad19ccff0335ac32adafb14eefc6f0d Mon Sep 17 00:00:00 2001 From: Prem Nirmal Date: Wed, 24 Aug 2022 22:34:00 +0100 Subject: [PATCH] Fix notification channels crash --- .../premnirmal/ticker/notifications/NotificationsHandler.kt | 2 +- app/version.properties | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/github/premnirmal/ticker/notifications/NotificationsHandler.kt b/app/src/main/kotlin/com/github/premnirmal/ticker/notifications/NotificationsHandler.kt index 247eceb8..6d9d7fec 100644 --- a/app/src/main/kotlin/com/github/premnirmal/ticker/notifications/NotificationsHandler.kt +++ b/app/src/main/kotlin/com/github/premnirmal/ticker/notifications/NotificationsHandler.kt @@ -110,7 +110,7 @@ class NotificationsHandler @Inject constructor( } private fun createChannels(): Boolean { - val hasPermission = VERSION.SDK_INT >= 33 && context.hasNotificationPermission() + val hasPermission = if (VERSION.SDK_INT >= 33) context.hasNotificationPermission() else true if (!hasPermission) { return false } diff --git a/app/version.properties b/app/version.properties index efd17bf8..038acea5 100644 --- a/app/version.properties +++ b/app/version.properties @@ -1,3 +1,3 @@ # this file is purely for f-droid because it cannot infer the version name/code from the git tag -versionName=3.9.808 -versionCode=300900008 +versionName=3.9.809 +versionCode=300900009