Add logo header in more section

This commit is contained in:
arkon
2020-04-27 22:48:25 -04:00
parent 2ad3fa1593
commit 90ce89193d
3 changed files with 44 additions and 1 deletions

View File

@@ -72,6 +72,13 @@ fun initDialog(dialogPreference: DialogPreference) {
}
}
inline fun <P : Preference> PreferenceGroup.add(p: P): P {
return p.apply {
this.isIconSpaceReserved = false
addPreference(this)
}
}
inline fun <P : Preference> PreferenceGroup.initThenAdd(p: P, block: P.() -> Unit): P {
return p.apply {
block()