From cff2a763a63db4963da993d74cd5070095239939 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20de=20Souza?= Date: Tue, 2 Apr 2024 16:47:36 +0200 Subject: [PATCH] Rename `CallbackCaller` to `CallbackHandler` --- CHANGELOG.md | 1 + app/src/main/kotlin/ui/ClockScreen.kt | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 72c4f72..6bf6f33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ #### Notes - Add `currentTime` variable to decrease code repetitions +- Rename `CallbackCaller` to `CallbackHandler` - Improve format of CHANGELOG.md ### [1.8.0](https://github.com/ldeso/blitz/releases/tag/v1.8.0) (2024-04-02) diff --git a/app/src/main/kotlin/ui/ClockScreen.kt b/app/src/main/kotlin/ui/ClockScreen.kt index adcd83a..d1c8066 100644 --- a/app/src/main/kotlin/ui/ClockScreen.kt +++ b/app/src/main/kotlin/ui/ClockScreen.kt @@ -82,7 +82,7 @@ fun ClockScreen( } var backEventAction by remember { mutableStateOf(ClockBackAction.PAUSE) } - CallbackCaller( + CallbackHandler( clockStateProvider = { clockState }, onClockStart = onClockStart, onClockStop = onClockStop, @@ -150,7 +150,7 @@ fun ClockScreen( * state of the clock returned by [clockStateProvider]. */ @Composable -private fun CallbackCaller( +private fun CallbackHandler( clockStateProvider: () -> ClockState, onClockStart: () -> Unit, onClockStop: () -> Unit,