Android: Convert AbstractStringSetting to Kotlin

This commit is contained in:
Charles Lombardo 2023-03-15 03:23:50 -04:00
parent 32f9e48257
commit f1028b4652
3 changed files with 10 additions and 14 deletions

View File

@ -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);
}

View File

@ -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)
}

View File

@ -19,6 +19,6 @@ class DateTimeChoiceSetting(
}
fun getSelectedValue(): String {
return setting.getString()
return setting.string
}
}