From 2801d00569ce4ac364c22c8e9209f02e38bc38f1 Mon Sep 17 00:00:00 2001 From: Aunali321 Date: Tue, 19 Dec 2023 00:05:43 +0530 Subject: [PATCH] feat(YouTube): Make `addControls` method from `BottomControlsResourcePatch` patch public --- .../misc/playercontrols/BottomControlsResourcePatch.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/playercontrols/BottomControlsResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/playercontrols/BottomControlsResourcePatch.kt index c602faa481..7d2f12e829 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/playercontrols/BottomControlsResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/playercontrols/BottomControlsResourcePatch.kt @@ -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 @@ -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