From bc05e4494d914f944a831bfb83a150ad93bb342f Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Thu, 20 Apr 2023 10:41:43 +0400 Subject: [PATCH] fix(youtube/hide-video-action-buttons): fix 'hide share button' (#1924) --- .../buttons/action/patch/HideButtonsPatch.kt | 30 +++++-------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/action/patch/HideButtonsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/action/patch/HideButtonsPatch.kt index 8e71064237..6d6f9ef36b 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/action/patch/HideButtonsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/action/patch/HideButtonsPatch.kt @@ -31,18 +31,11 @@ class HideButtonsPatch : ResourcePatch { StringResource("revanced_hide_buttons_title", "Hide action buttons"), listOf( SwitchPreference( - "revanced_hide_like_button", - StringResource("revanced_hide_like_button_title", "Hide like button"), + "revanced_hide_like_dislike_button", + StringResource("revanced_hide_like_dislike_button_title", "Hide like and dislike buttons"), false, - StringResource("revanced_hide_like_button_summary_on", "Like button is hidden"), - StringResource("revanced_hide_like_button_summary_off", "Like button is shown") - ), - SwitchPreference( - "revanced_hide_dislike_button", - StringResource("revanced_hide_dislike_button_title", "Hide dislike button"), - false, - StringResource("revanced_hide_dislike_button_summary_on", "Dislike button is hidden"), - StringResource("revanced_hide_dislike_button_summary_off", "Dislike button is shown") + StringResource("revanced_hide_like_dislike_button_summary_on", "Like and dislike buttons are hidden"), + StringResource("revanced_hide_like_dislike_button_summary_off", "Like and dislike buttons are shown") ), SwitchPreference( "revanced_hide_download_button", @@ -59,18 +52,11 @@ class HideButtonsPatch : ResourcePatch { StringResource("revanced_hide_playlist_button_summary_off", "Playlist button is shown") ), SwitchPreference( - "revanced_hide_action_button", - StringResource("revanced_hide_action_button_title", "Hide create, clip and thanks buttons"), - false, - StringResource("revanced_hide_action_button_summary_on", "Buttons are hidden"), - StringResource("revanced_hide_action_button_summary_off", "Buttons are shown") - ), - SwitchPreference( - "revanced_hide_share_button", - StringResource("revanced_hide_share_button_title", "Hide share button"), + "revanced_hide_action_buttons", + StringResource("revanced_hide_action_buttons_title", "Hide all other action buttons"), false, - StringResource("revanced_hide_share_button_summary_on", "Share button is hidden"), - StringResource("revanced_hide_share_button_summaryoff", "Share button is shown") + StringResource("revanced_hide_action_buttons_summary_on", "Share, remix, clip, thanks, shop, live chat buttons are hidden"), + StringResource("revanced_hide_action_buttons_summary_off", "Share, remix, clip, thanks, shop, live chat buttons are shown") ) ), StringResource("revanced_hide_buttons_summary", "Hide or show buttons under videos")