Android: Convert LogSwitchSetting to Kotlin

This commit is contained in:
Charles Lombardo 2023-03-15 03:27:52 -04:00
parent 56c33890b9
commit 72be338d56
2 changed files with 21 additions and 23 deletions

View File

@ -1,23 +0,0 @@
// SPDX-License-Identifier: GPL-2.0-or-later
package org.dolphinemu.dolphinemu.features.settings.model.view;
import org.dolphinemu.dolphinemu.features.settings.model.AdHocBooleanSetting;
import org.dolphinemu.dolphinemu.features.settings.model.Settings;
public class LogSwitchSetting extends SwitchSetting
{
String mKey;
public LogSwitchSetting(String key, CharSequence title, CharSequence description)
{
super(new AdHocBooleanSetting(Settings.FILE_LOGGER, Settings.SECTION_LOGGER_LOGS, key, false),
title, description);
mKey = key;
}
public String getKey()
{
return mKey;
}
}

View File

@ -0,0 +1,21 @@
// SPDX-License-Identifier: GPL-2.0-or-later
package org.dolphinemu.dolphinemu.features.settings.model.view
import org.dolphinemu.dolphinemu.features.settings.model.AdHocBooleanSetting
import org.dolphinemu.dolphinemu.features.settings.model.Settings
class LogSwitchSetting(
var key: String,
title: CharSequence?,
description: CharSequence?
) : SwitchSetting(
AdHocBooleanSetting(
Settings.FILE_LOGGER,
Settings.SECTION_LOGGER_LOGS,
key,
false
),
title,
description
)