mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-16 14:27:18 +02:00
fix(youtube/hide-button-container): switch does not working
This commit is contained in:
parent
98067011d0
commit
ded6ba383a
@ -14,6 +14,7 @@ import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility
|
|||||||
import app.revanced.patches.youtube.utils.litho.patch.LithoFilterPatch
|
import app.revanced.patches.youtube.utils.litho.patch.LithoFilterPatch
|
||||||
import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch
|
||||||
import app.revanced.util.integrations.Constants.BOTTOM_PLAYER
|
import app.revanced.util.integrations.Constants.BOTTOM_PLAYER
|
||||||
|
import app.revanced.util.integrations.Constants.PATCHES_PATH
|
||||||
|
|
||||||
@Patch
|
@Patch
|
||||||
@Name("hide-button-container")
|
@Name("hide-button-container")
|
||||||
@ -29,6 +30,7 @@ import app.revanced.util.integrations.Constants.BOTTOM_PLAYER
|
|||||||
class ButtonContainerPatch : ResourcePatch {
|
class ButtonContainerPatch : ResourcePatch {
|
||||||
override fun execute(context: ResourceContext): PatchResult {
|
override fun execute(context: ResourceContext): PatchResult {
|
||||||
|
|
||||||
|
LithoFilterPatch.addFilter("$PATCHES_PATH/ads/ButtonsFilter;")
|
||||||
objectHook("$BOTTOM_PLAYER->hideActionButton")
|
objectHook("$BOTTOM_PLAYER->hideActionButton")
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user