From 9b4a13b55c9bf00ffaff1b1b6d5b07a22e3a9bf9 Mon Sep 17 00:00:00 2001 From: maltaisn Date: Thu, 28 Dec 2023 14:32:21 -0500 Subject: [PATCH] Update changelog --- CHANGELOG.md | 7 ++++--- .../com/maltaisn/notes/ui/reminder/ReminderDialog.kt | 8 +++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 431e16db..ce953ae1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,10 @@ -## v1.5.4 (TBD) +## v1.5.4 (2023-12-28) - Ask for notification permission on Android 13 when importing data with reminders. -- Fix link URL not saved across process death in EditFragment. +- Fixed link URL not saved across process death in EditFragment. +- Fixed alarm permission causing crash on Android 14 (#125, @GitGitro) ## v1.5.3 (2023-08-29) -- Add Chinese translation. +- Added Chinese translation. ## v1.5.2 (2023-08-27) - Allow creating note from shared file. diff --git a/app/src/main/kotlin/com/maltaisn/notes/ui/reminder/ReminderDialog.kt b/app/src/main/kotlin/com/maltaisn/notes/ui/reminder/ReminderDialog.kt index 8f935c2a..90f48b66 100644 --- a/app/src/main/kotlin/com/maltaisn/notes/ui/reminder/ReminderDialog.kt +++ b/app/src/main/kotlin/com/maltaisn/notes/ui/reminder/ReminderDialog.kt @@ -128,11 +128,9 @@ class ReminderDialog : DialogFragment(), RecurrenceListCallback, RecurrencePicke deniedListener = { dismiss() } request() } - reminderPermission = getContext()?.let { - ReminderPermission(this, it).apply { - deniedListener = { dismiss() } - request() - } + reminderPermission = ReminderPermission(this, requireContext()).apply { + deniedListener = { dismiss() } + request() } }