From c1e30b5f42b7d9205fec15561653966b698226a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Thu, 17 Aug 2023 16:42:19 +0200 Subject: [PATCH] Properly update alarms list when adding a new alarm --- .../com/simplemobiletools/clock/fragments/AlarmFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/clock/fragments/AlarmFragment.kt b/app/src/main/kotlin/com/simplemobiletools/clock/fragments/AlarmFragment.kt index 75b68280..fd11e34d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/clock/fragments/AlarmFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/clock/fragments/AlarmFragment.kt @@ -96,7 +96,7 @@ class AlarmFragment : Fragment(), ToggleAlarmInterface { updatePrimaryColor() updateBackgroundColor(requireContext().getProperBackgroundColor()) updateTextColor(requireContext().getProperTextColor()) - updateItems(alarms) + updateItems(this@AlarmFragment.alarms) } } }