feat(YouTube Music - Hide action bar components): Add Hide Song / Video button setting (YouTube Music 7.33.51+)

This commit is contained in:
inotia00
2025-02-10 17:30:10 +09:00
parent a23944945f
commit 4531187418
4 changed files with 18 additions and 1 deletions

View File

@ -12,6 +12,7 @@ import app.revanced.patches.music.utils.extension.Constants.COMPONENTS_PATH
import app.revanced.patches.music.utils.patch.PatchList.HIDE_ACTION_BAR_COMPONENTS
import app.revanced.patches.music.utils.playservice.is_7_17_or_greater
import app.revanced.patches.music.utils.playservice.is_7_25_or_greater
import app.revanced.patches.music.utils.playservice.is_7_33_or_greater
import app.revanced.patches.music.utils.playservice.versionCheckPatch
import app.revanced.patches.music.utils.resourceid.likeDislikeContainer
import app.revanced.patches.music.utils.resourceid.sharedResourceIdPatch
@ -223,6 +224,13 @@ val actionBarComponentsPatch = bytecodePatch(
"revanced_hide_action_button_share",
"false"
)
if (is_7_33_or_greater) {
addSwitchPreference(
CategoryType.ACTION_BAR,
"revanced_hide_action_button_song_video",
"false"
)
}
if (!is_7_25_or_greater) {
addSwitchPreference(
CategoryType.ACTION_BAR,