mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Center icons when text is not visible
This commit is contained in:
parent
b5c89cf6f8
commit
39f6f5ccf2
1 changed files with 3 additions and 0 deletions
|
@ -1605,6 +1605,9 @@ open class FullScreenPlayer : AbstractPlayerFragment() {
|
||||||
layout.children.forEach {
|
layout.children.forEach {
|
||||||
if (it is MaterialButton) {
|
if (it is MaterialButton) {
|
||||||
it.textSize = 0f
|
it.textSize = 0f
|
||||||
|
it.iconPadding = 0
|
||||||
|
it.iconGravity = MaterialButton.ICON_GRAVITY_TEXT_START
|
||||||
|
it.setPadding(0,0,0,0)
|
||||||
} else if (it is LinearLayout) {
|
} else if (it is LinearLayout) {
|
||||||
iterate(it)
|
iterate(it)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue