From b9fb2e8ed6fd3109185013cc3cc2c576adfc5e38 Mon Sep 17 00:00:00 2001 From: Oleksandr Balan Date: Tue, 28 Mar 2023 18:23:39 +0200 Subject: [PATCH] Fix spotless --- pagecurl/src/main/kotlin/eu/wewox/pagecurl/page/PageCurl.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pagecurl/src/main/kotlin/eu/wewox/pagecurl/page/PageCurl.kt b/pagecurl/src/main/kotlin/eu/wewox/pagecurl/page/PageCurl.kt index 0c4e2ef..09d63f5 100644 --- a/pagecurl/src/main/kotlin/eu/wewox/pagecurl/page/PageCurl.kt +++ b/pagecurl/src/main/kotlin/eu/wewox/pagecurl/page/PageCurl.kt @@ -77,13 +77,15 @@ public fun PageCurl( } if (updatedCurrent < state.max) { - Box(Modifier.drawCurl(config, internalState.forward.value.top, internalState.forward.value.bottom)) { + val forward = internalState.forward.value + Box(Modifier.drawCurl(config, forward.top, forward.bottom)) { content(updatedCurrent) } } if (updatedCurrent > 0) { - Box(Modifier.drawCurl(config, internalState.backward.value.top, internalState.backward.value.bottom)) { + val backward = internalState.backward.value + Box(Modifier.drawCurl(config, backward.top, backward.bottom)) { content(updatedCurrent - 1) } }