Android: Convert HeaderSetting to Kotlin

This commit is contained in:
Charles Lombardo 2023-03-15 03:26:39 -04:00
parent 1e2e9e004b
commit f95fd7788e
2 changed files with 20 additions and 32 deletions

View File

@ -1,32 +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;
public class HeaderSetting extends SettingsItem
{
public HeaderSetting(Context context, int titleId, int descriptionId)
{
super(context, titleId, descriptionId);
}
public HeaderSetting(CharSequence title, CharSequence description)
{
super(title, description);
}
@Override
public int getType()
{
return SettingsItem.TYPE_HEADER;
}
@Override
public AbstractSetting getSetting()
{
return null;
}
}

View File

@ -0,0 +1,20 @@
// 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
open class HeaderSetting : SettingsItem {
override val setting: AbstractSetting? = null
constructor(
context: Context,
titleId: Int,
descriptionId: Int
) : super(context, titleId, descriptionId)
constructor(title: CharSequence, description: CharSequence?) : super(title, description)
override val type: Int = TYPE_HEADER
}