mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-27 01:02:48 +01:00
android: Convert SubmenuSetting to Kotlin
This commit is contained in:
parent
91884976a1
commit
b98aaf1635
2 changed files with 15 additions and 21 deletions
|
@ -1,21 +0,0 @@
|
||||||
package org.yuzu.yuzu_emu.features.settings.model.view;
|
|
||||||
|
|
||||||
import org.yuzu.yuzu_emu.features.settings.model.Setting;
|
|
||||||
|
|
||||||
public final class SubmenuSetting extends SettingsItem {
|
|
||||||
private String mMenuKey;
|
|
||||||
|
|
||||||
public SubmenuSetting(String key, Setting setting, int titleId, int descriptionId, String menuKey) {
|
|
||||||
super(key, null, setting, titleId, descriptionId);
|
|
||||||
mMenuKey = menuKey;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMenuKey() {
|
|
||||||
return mMenuKey;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getType() {
|
|
||||||
return TYPE_SUBMENU;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
package org.yuzu.yuzu_emu.features.settings.model.view
|
||||||
|
|
||||||
|
import org.yuzu.yuzu_emu.features.settings.model.Setting
|
||||||
|
|
||||||
|
class SubmenuSetting(
|
||||||
|
key: String?,
|
||||||
|
setting: Setting?,
|
||||||
|
titleId: Int,
|
||||||
|
descriptionId: Int,
|
||||||
|
val menuKey: String
|
||||||
|
) : SettingsItem(
|
||||||
|
key, null, setting, titleId, descriptionId
|
||||||
|
) {
|
||||||
|
override val type = TYPE_SUBMENU
|
||||||
|
}
|
Loading…
Reference in a new issue