Skip to content

Commit

Permalink
fix(YouTube/Overlay buttons): paddingBottom is not set when patch opt…
Browse files Browse the repository at this point in the history
…ion `WiderButtonsSpace` is TRUE inotia00#87
  • Loading branch information
inotia00 committed Sep 30, 2024
1 parent a866116 commit 387891e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,7 @@ object OverlayButtonsPatch : BaseResourcePatch(
"@id/timestamps_container" to "14.0dip"
)

val widerButtonsSpace = WiderButtonsSpace == true
val layoutHeightWidth = if (widerButtonsSpace)
val layoutHeightWidth = if (WiderButtonsSpace == true)
"56.0dip"
else
"48.0dip"
Expand All @@ -227,7 +226,7 @@ object OverlayButtonsPatch : BaseResourcePatch(
node.setAttribute("android:layout_height", layoutHeightWidth)
node.setAttribute("android:layout_width", layoutHeightWidth)
}
} else if (!widerButtonsSpace && timBarItem.containsKey(id)) {
} else if (timBarItem.containsKey(id)) {
node.setAttribute("android:layout_marginBottom", marginBottom)
node.setAttribute("android:paddingBottom", timBarItem.getValue(id))
}
Expand Down

0 comments on commit 387891e

Please sign in to comment.