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:
inotia00 2024-09-30 22:55:02 +09:00
parent 387891e88b
commit 30a88bd7da

View File

@ -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))
}
}
}
}