Android: Convert SubmenuSetting to Kotlin

This commit is contained in:
Charles Lombardo 2023-03-15 03:29:33 -04:00
parent 065c80fb4d
commit ab11b44938
2 changed files with 17 additions and 36 deletions

View File

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

View File

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