From 2439fc8374ae7689a6535476f0574452cd0a218b Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Tue, 7 Mar 2023 17:19:36 -0500 Subject: [PATCH] android: Convert FloatSetting to Kotlin --- .../features/settings/model/FloatSetting.java | 23 ------------------- .../features/settings/model/FloatSetting.kt | 9 ++++++++ 2 files changed, 9 insertions(+), 23 deletions(-) delete mode 100644 src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/FloatSetting.java create mode 100644 src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/FloatSetting.kt 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 9b9b600929..0000000000 --- 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 0000000000..f0a4a36373 --- /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() +}