From 6e7fdcb48469d9b469cea9675eff41f7ba27fac3 Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Tue, 7 Mar 2023 17:19:48 -0500 Subject: android: Convert IntSetting to Kotlin --- .../features/settings/model/IntSetting.java | 23 ---------------------- .../yuzu_emu/features/settings/model/IntSetting.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/IntSetting.java create mode 100644 src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.kt (limited to 'src/android') diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.java b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.java deleted file mode 100644 index 001f27579..000000000 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.yuzu.yuzu_emu.features.settings.model; - -public final class IntSetting extends Setting { - private int mValue; - - public IntSetting(String key, String section, int value) { - super(key, section); - mValue = value; - } - - public int getValue() { - return mValue; - } - - public void setValue(int value) { - mValue = value; - } - - @Override - public String getValueAsString() { - return Integer.toString(mValue); - } -} diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.kt new file mode 100644 index 000000000..a5f976f4e --- /dev/null +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.kt @@ -0,0 +1,9 @@ +package org.yuzu.yuzu_emu.features.settings.model + +class IntSetting( + key: String, + section: String, + var value: Int +) : Setting(key, section) { + override val valueAsString = value.toString() +} -- cgit v1.2.3