commit d1283b0ef764c6e044410b20fc68c0e7d4a8717b
parent e9bbf365ac9a77fbfb565a78c80e754fb59366e8
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date: Mon, 3 Jun 2024 01:11:05 +0200
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>
Diffstat:
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
@@ -4,7 +4,7 @@ import androidx.compose.runtime.MutableState
class ObservableMutableState<T>(
defaultValue: T,
- inline val onChange: (T, T) -> Unit = { _, _ -> },
+ val onChange: (T, T) -> Unit = { _, _ -> },
) : MutableState<T> {
private var mutableValue: T = defaultValue
override var value: T