mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 09:09:04 +00:00
Android: Convert AbstractStringSetting to Kotlin
This commit is contained in:
parent
32f9e48257
commit
f1028b4652
3 changed files with 10 additions and 14 deletions
|
@ -1,13 +0,0 @@
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
||||||
|
|
||||||
package org.dolphinemu.dolphinemu.features.settings.model;
|
|
||||||
|
|
||||||
import androidx.annotation.NonNull;
|
|
||||||
|
|
||||||
public interface AbstractStringSetting extends AbstractSetting
|
|
||||||
{
|
|
||||||
@NonNull
|
|
||||||
String getString();
|
|
||||||
|
|
||||||
void setString(@NonNull Settings settings, @NonNull String newValue);
|
|
||||||
}
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
package org.dolphinemu.dolphinemu.features.settings.model
|
||||||
|
|
||||||
|
interface AbstractStringSetting : AbstractSetting {
|
||||||
|
val string: String
|
||||||
|
|
||||||
|
fun setString(settings: Settings, newValue: String)
|
||||||
|
}
|
|
@ -19,6 +19,6 @@ class DateTimeChoiceSetting(
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getSelectedValue(): String {
|
fun getSelectedValue(): String {
|
||||||
return setting.getString()
|
return setting.string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue