mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix format in PreferenceDSL
This commit is contained in:
parent
15117d07f6
commit
714592d724
1 changed files with 7 additions and 8 deletions
|
@ -117,14 +117,13 @@ inline fun PreferenceScreen.switchPreference(block: (@DSL SwitchPreferenceCompat
|
|||
|
||||
fun PreferenceGroup.infoPreference(@StringRes infoRes: Int): Preference {
|
||||
return initThenAdd(
|
||||
Preference(context),
|
||||
{
|
||||
iconRes = R.drawable.ic_info_outline_24dp
|
||||
iconTint = context.getResourceColor(android.R.attr.textColorSecondary)
|
||||
summaryRes = infoRes
|
||||
isSelectable = false
|
||||
}
|
||||
)
|
||||
Preference(context)
|
||||
) {
|
||||
iconRes = R.drawable.ic_info_outline_24dp
|
||||
iconTint = context.getResourceColor(android.R.attr.textColorSecondary)
|
||||
summaryRes = infoRes
|
||||
isSelectable = false
|
||||
}
|
||||
}
|
||||
|
||||
inline fun PreferenceScreen.preferenceScreen(block: (@DSL PreferenceScreen).() -> Unit): PreferenceScreen {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue