Android: Convert SubmenuSetting to Kotlin
This commit is contained in:
parent
065c80fb4d
commit
ab11b44938
|
@ -1,36 +0,0 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
package org.dolphinemu.dolphinemu.features.settings.model.view;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import org.dolphinemu.dolphinemu.features.settings.model.AbstractSetting;
|
||||
import org.dolphinemu.dolphinemu.features.settings.ui.MenuTag;
|
||||
|
||||
public final class SubmenuSetting extends SettingsItem
|
||||
{
|
||||
private MenuTag mMenuKey;
|
||||
|
||||
public SubmenuSetting(Context context, int titleId, MenuTag menuKey)
|
||||
{
|
||||
super(context, titleId, 0);
|
||||
mMenuKey = menuKey;
|
||||
}
|
||||
|
||||
public MenuTag getMenuKey()
|
||||
{
|
||||
return mMenuKey;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getType()
|
||||
{
|
||||
return TYPE_SUBMENU;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractSetting getSetting()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
package org.dolphinemu.dolphinemu.features.settings.model.view
|
||||
|
||||
import android.content.Context
|
||||
import org.dolphinemu.dolphinemu.features.settings.model.AbstractSetting
|
||||
import org.dolphinemu.dolphinemu.features.settings.ui.MenuTag
|
||||
|
||||
class SubmenuSetting(
|
||||
context: Context,
|
||||
titleId: Int,
|
||||
val menuKey: MenuTag
|
||||
) : SettingsItem(context, titleId, 0) {
|
||||
override val type: Int = TYPE_SUBMENU
|
||||
|
||||
override val setting: AbstractSetting? = null
|
||||
}
|
Loading…
Reference in New Issue