Skip to content

Commit

Permalink
feat(YouTube): Make addControls method from `BottomControlsResource…
Browse files Browse the repository at this point in the history
…Patch` patch public
  • Loading branch information
Aunali321 committed Dec 18, 2023
1 parent de4823c commit 2801d00
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import java.io.Closeable
object BottomControlsResourcePatch : ResourcePatch(), Closeable {
internal var bottomUiContainerResourceId: Long = -1

internal const val TARGET_RESOURCE_NAME = "youtube_controls_bottom_ui_container.xml"
const val TARGET_RESOURCE_NAME = "youtube_controls_bottom_ui_container.xml"
private const val TARGET_RESOURCE = "res/layout/$TARGET_RESOURCE_NAME"

private lateinit var resourceContext: ResourceContext
Expand All @@ -32,7 +32,7 @@ object BottomControlsResourcePatch : ResourcePatch(), Closeable {
* Add new controls to the bottom of the YouTube player.
* @param hostYouTubeControlsBottomUiResourceName The hosting resource name containing the elements.
*/
internal fun addControls(hostYouTubeControlsBottomUiResourceName: String) {
fun addControls(hostYouTubeControlsBottomUiResourceName: String) {
val sourceXmlEditor =
resourceContext.xmlEditor[this::class.java.classLoader.getResourceAsStream(
hostYouTubeControlsBottomUiResourceName
Expand Down

0 comments on commit 2801d00

Please sign in to comment.