From d1283b0ef764c6e044410b20fc68c0e7d4a8717b Mon Sep 17 00:00:00 2001 From: rhunk <101876869+rhunk@users.noreply.github.com> Date: Mon, 3 Jun 2024 01:11:05 +0200 Subject: [PATCH] fix(app): deprecated inline property Inline property cannot have a backing field. This will become an error in Kotlin 2.1. Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com> --- .../me/rhunk/snapenhance/ui/util/ObservableMutableState.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/me/rhunk/snapenhance/ui/util/ObservableMutableState.kt b/app/src/main/kotlin/me/rhunk/snapenhance/ui/util/ObservableMutableState.kt index 6dc6af45..73ea1b3c 100644 --- a/app/src/main/kotlin/me/rhunk/snapenhance/ui/util/ObservableMutableState.kt +++ b/app/src/main/kotlin/me/rhunk/snapenhance/ui/util/ObservableMutableState.kt @@ -4,7 +4,7 @@ import androidx.compose.runtime.MutableState class ObservableMutableState( defaultValue: T, - inline val onChange: (T, T) -> Unit = { _, _ -> }, + val onChange: (T, T) -> Unit = { _, _ -> }, ) : MutableState { private var mutableValue: T = defaultValue override var value: T