summaryrefslogtreecommitdiffstats
path: root/src/android/app
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-03-07 23:19:36 +0100
committerbunnei <bunneidev@gmail.com>2023-06-03 09:05:36 +0200
commit2439fc8374ae7689a6535476f0574452cd0a218b (patch)
tree25e35115d64ae87d47f2624d692969c38c3b73b6 /src/android/app
parentandroid: Convert BooleanSetting to Kotlin (diff)
downloadyuzu-2439fc8374ae7689a6535476f0574452cd0a218b.tar
yuzu-2439fc8374ae7689a6535476f0574452cd0a218b.tar.gz
yuzu-2439fc8374ae7689a6535476f0574452cd0a218b.tar.bz2
yuzu-2439fc8374ae7689a6535476f0574452cd0a218b.tar.lz
yuzu-2439fc8374ae7689a6535476f0574452cd0a218b.tar.xz
yuzu-2439fc8374ae7689a6535476f0574452cd0a218b.tar.zst
yuzu-2439fc8374ae7689a6535476f0574452cd0a218b.zip
Diffstat (limited to 'src/android/app')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/FloatSetting.java23
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/FloatSetting.kt9
2 files changed, 9 insertions, 23 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/FloatSetting.java b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/FloatSetting.java
deleted file mode 100644
index 9b9b60092..000000000
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/FloatSetting.java
+++ /dev/null
@@ -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);
- }
-}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/FloatSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/FloatSetting.kt
new file mode 100644
index 000000000..f0a4a3637
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/FloatSetting.kt
@@ -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()
+}