mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-11 20:14:35 +02:00
fix(YouTube/Overlay buttons): paddingBottom is not set when patch option WiderButtonsSpace
is TRUE https://github.com/inotia00/revanced-patches/pull/87
This commit is contained in:
parent
387891e88b
commit
30a88bd7da
@ -212,7 +212,8 @@ object OverlayButtonsPatch : BaseResourcePatch(
|
||||
"@id/timestamps_container" to "14.0dip"
|
||||
)
|
||||
|
||||
val layoutHeightWidth = if (WiderButtonsSpace == true)
|
||||
val widerButtonsSpace = WiderButtonsSpace == true
|
||||
val layoutHeightWidth = if (widerButtonsSpace)
|
||||
"56.0dip"
|
||||
else
|
||||
"48.0dip"
|
||||
@ -228,7 +229,9 @@ object OverlayButtonsPatch : BaseResourcePatch(
|
||||
}
|
||||
} else if (timBarItem.containsKey(id)) {
|
||||
node.setAttribute("android:layout_marginBottom", marginBottom)
|
||||
node.setAttribute("android:paddingBottom", timBarItem.getValue(id))
|
||||
if (!widerButtonsSpace) {
|
||||
node.setAttribute("android:paddingBottom", timBarItem.getValue(id))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user