Android: Convert AbstractStringSetting to Kotlin
This commit is contained in:
parent
32f9e48257
commit
f1028b4652
|
@ -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 {
|
||||
return setting.getString()
|
||||
return setting.string
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue