mirror of
https://git.mihon.tech/mihonapp/mihon
synced 2024-11-28 02:14:00 +03:00
Allow preferences to multi-line (#5905)
This commit is contained in:
parent
a2cf210a52
commit
971d8a7e40
1 changed files with 3 additions and 0 deletions
|
@ -94,6 +94,7 @@ fun initDialog(dialogPreference: DialogPreference) {
|
|||
inline fun <P : Preference> PreferenceGroup.add(p: P): P {
|
||||
return p.apply {
|
||||
this.isIconSpaceReserved = false
|
||||
this.isSingleLineTitle = false
|
||||
addPreference(this)
|
||||
}
|
||||
}
|
||||
|
@ -102,6 +103,7 @@ inline fun <P : Preference> PreferenceGroup.initThenAdd(p: P, block: P.() -> Uni
|
|||
return p.apply {
|
||||
block()
|
||||
this.isIconSpaceReserved = false
|
||||
this.isSingleLineTitle = false
|
||||
addPreference(this)
|
||||
}
|
||||
}
|
||||
|
@ -109,6 +111,7 @@ inline fun <P : Preference> PreferenceGroup.initThenAdd(p: P, block: P.() -> Uni
|
|||
inline fun <P : Preference> PreferenceGroup.addThenInit(p: P, block: P.() -> Unit): P {
|
||||
return p.apply {
|
||||
this.isIconSpaceReserved = false
|
||||
this.isSingleLineTitle = false
|
||||
addPreference(this)
|
||||
block()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue