mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
Android: Convert AbstractBooleanSetting to Kotlin
This commit is contained in:
parent
21e0b5b9d9
commit
5bc2b46983
@ -43,7 +43,7 @@ abstract class SettingDisabledWarningFragment(
|
||||
super.onResume()
|
||||
val activity = requireActivity() as CheatsActivity
|
||||
activity.loadGameSpecificSettings().use {
|
||||
val cheatsEnabled = setting.getBoolean()
|
||||
val cheatsEnabled = setting.boolean
|
||||
requireView().visibility = if (cheatsEnabled) View.GONE else View.VISIBLE
|
||||
}
|
||||
}
|
||||
|
@ -1,12 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
package org.dolphinemu.dolphinemu.features.settings.model;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
public interface AbstractBooleanSetting extends AbstractSetting
|
||||
{
|
||||
boolean getBoolean();
|
||||
|
||||
void setBoolean(@NonNull Settings settings, boolean newValue);
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
package org.dolphinemu.dolphinemu.features.settings.model
|
||||
|
||||
interface AbstractBooleanSetting : AbstractSetting {
|
||||
val boolean: Boolean
|
||||
|
||||
fun setBoolean(settings: Settings, newValue: Boolean)
|
||||
}
|
Loading…
Reference in New Issue
Block a user