mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 06:07:48 +01:00
fixes the androidx prefererences icon spacing issue
This commit is contained in:
parent
2bb903088e
commit
b76a15d960
1 changed files with 8 additions and 2 deletions
|
@ -58,11 +58,17 @@ fun initDialog(dialogPreference: DialogPreference) {
|
|||
}
|
||||
|
||||
inline fun <P : Preference> PreferenceGroup.initThenAdd(p: P, block: P.() -> Unit): P {
|
||||
return p.apply { block(); addPreference(this); }
|
||||
return p.apply {
|
||||
block()
|
||||
this.isIconSpaceReserved = false
|
||||
addPreference(this) }
|
||||
}
|
||||
|
||||
inline fun <P : Preference> PreferenceGroup.addThenInit(p: P, block: P.() -> Unit): P {
|
||||
return p.apply { addPreference(this); block() }
|
||||
return p.apply {
|
||||
this.isIconSpaceReserved = false
|
||||
addPreference(this)
|
||||
block() }
|
||||
}
|
||||
|
||||
inline fun Preference.onClick(crossinline block: () -> Unit) {
|
||||
|
|
Loading…
Reference in a new issue