mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 23:59:27 +01:00
Android: Convert HeaderSetting to Kotlin
This commit is contained in:
parent
1e2e9e004b
commit
f95fd7788e
@ -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;
|
||||
}
|
||||
}
|
@ -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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user