mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-23 17:00:57 +01:00
android: Convert FloatSetting to Kotlin
This commit is contained in:
parent
88b9d484e8
commit
2439fc8374
2 changed files with 9 additions and 23 deletions
|
@ -1,23 +0,0 @@
|
||||||
package org.yuzu.yuzu_emu.features.settings.model;
|
|
||||||
|
|
||||||
public final class FloatSetting extends Setting {
|
|
||||||
private float mValue;
|
|
||||||
|
|
||||||
public FloatSetting(String key, String section, float value) {
|
|
||||||
super(key, section);
|
|
||||||
mValue = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float getValue() {
|
|
||||||
return mValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setValue(float value) {
|
|
||||||
mValue = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getValueAsString() {
|
|
||||||
return Float.toString(mValue);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
package org.yuzu.yuzu_emu.features.settings.model
|
||||||
|
|
||||||
|
class FloatSetting(
|
||||||
|
key: String,
|
||||||
|
section: String,
|
||||||
|
var value: Float
|
||||||
|
) : Setting(key, section) {
|
||||||
|
override val valueAsString = value.toString()
|
||||||
|
}
|
Loading…
Reference in a new issue