android: settings: Dynamically evaluate valueAsString

Co-Authored-By: bunnei <bunneidev@gmail.com>
This commit is contained in:
bunnei 2023-03-11 16:20:24 -08:00
parent 2d934720f5
commit c385b2b07b
4 changed files with 4 additions and 4 deletions

View file

@ -8,5 +8,5 @@ class BooleanSetting(
section: String,
var value: Boolean
) : Setting(key, section) {
override val valueAsString = if (value) "True" else "False"
override val valueAsString get() = if (value) "True" else "False"
}

View file

@ -8,5 +8,5 @@ class FloatSetting(
section: String,
var value: Float
) : Setting(key, section) {
override val valueAsString = value.toString()
override val valueAsString get() = value.toString()
}

View file

@ -8,5 +8,5 @@ class IntSetting(
section: String,
var value: Int
) : Setting(key, section) {
override val valueAsString = value.toString()
override val valueAsString get() = value.toString()
}

View file

@ -8,5 +8,5 @@ class StringSetting(
section: String,
var value: String
) : Setting(key, section) {
override var valueAsString = value
override val valueAsString get() = value
}