Skip to content

Commit 387891e

Browse files
committed
fix(YouTube/Overlay buttons): paddingBottom is not set when patch option WiderButtonsSpace is TRUE inotia00#87
1 parent a866116 commit 387891e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/kotlin/app/revanced/patches/youtube/player/overlaybuttons/OverlayButtonsPatch.kt

+2-3
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,7 @@ object OverlayButtonsPatch : BaseResourcePatch(
212212
"@id/timestamps_container" to "14.0dip"
213213
)
214214

215-
val widerButtonsSpace = WiderButtonsSpace == true
216-
val layoutHeightWidth = if (widerButtonsSpace)
215+
val layoutHeightWidth = if (WiderButtonsSpace == true)
217216
"56.0dip"
218217
else
219218
"48.0dip"
@@ -227,7 +226,7 @@ object OverlayButtonsPatch : BaseResourcePatch(
227226
node.setAttribute("android:layout_height", layoutHeightWidth)
228227
node.setAttribute("android:layout_width", layoutHeightWidth)
229228
}
230-
} else if (!widerButtonsSpace && timBarItem.containsKey(id)) {
229+
} else if (timBarItem.containsKey(id)) {
231230
node.setAttribute("android:layout_marginBottom", marginBottom)
232231
node.setAttribute("android:paddingBottom", timBarItem.getValue(id))
233232
}

0 commit comments

Comments
 (0)