mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 05:07:41 +02:00
feat(YouTube Music - Hide action bar components): Add Hide Song / Video button
setting (YouTube Music 7.33.51+)
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user