mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 22:54:00 +00:00
android: Convert StringSetting to Kotlin
This commit is contained in:
parent
412ec72d26
commit
f0a9fcf100
2 changed files with 9 additions and 23 deletions
|
@ -1,23 +0,0 @@
|
||||||
package org.yuzu.yuzu_emu.features.settings.model;
|
|
||||||
|
|
||||||
public final class StringSetting extends Setting {
|
|
||||||
private String mValue;
|
|
||||||
|
|
||||||
public StringSetting(String key, String section, String value) {
|
|
||||||
super(key, section);
|
|
||||||
mValue = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getValue() {
|
|
||||||
return mValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setValue(String value) {
|
|
||||||
mValue = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getValueAsString() {
|
|
||||||
return mValue;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
package org.yuzu.yuzu_emu.features.settings.model
|
||||||
|
|
||||||
|
class StringSetting(
|
||||||
|
key: String,
|
||||||
|
section: String,
|
||||||
|
var value: String
|
||||||
|
) : Setting(key, section) {
|
||||||
|
override var valueAsString = value
|
||||||
|
}
|
Loading…
Reference in a new issue