3
3
Fork 1
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:
EdgarPi 2024-07-25 10:59:22 +02:00
parent b5c89cf6f8
commit 39f6f5ccf2

View file

@ -1605,6 +1605,9 @@ open class FullScreenPlayer : AbstractPlayerFragment() {
layout.children.forEach {
if (it is MaterialButton) {
it.textSize = 0f
it.iconPadding = 0
it.iconGravity = MaterialButton.ICON_GRAVITY_TEXT_START
it.setPadding(0,0,0,0)
} else if (it is LinearLayout) {
iterate(it)
}