Android: Convert LogSwitchSetting to Kotlin
This commit is contained in:
parent
56c33890b9
commit
72be338d56
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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
|
||||
)
|
Loading…
Reference in New Issue