From 7f9cf008ed2df7ac46d00792e2ee280aaaee8201 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Mon, 19 Feb 2024 00:45:52 +0400 Subject: [PATCH] fix: remove non functional `hide live chat button` (live chat is no longer an action button) --- .../youtube/patches/components/ButtonsFilter.java | 4 ---- .../revanced/integrations/youtube/settings/Settings.java | 6 ++---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/app/revanced/integrations/youtube/patches/components/ButtonsFilter.java b/app/src/main/java/app/revanced/integrations/youtube/patches/components/ButtonsFilter.java index 5db9a8a841..c92cba972d 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/patches/components/ButtonsFilter.java +++ b/app/src/main/java/app/revanced/integrations/youtube/patches/components/ButtonsFilter.java @@ -49,10 +49,6 @@ public ButtonsFilter() { ); bufferButtonsGroupList.addAll( - new ByteArrayFilterGroup( - Settings.HIDE_LIVE_CHAT_BUTTON, - "yt_outline_message_bubble_overlap" - ), new ByteArrayFilterGroup( Settings.HIDE_REPORT_BUTTON, "yt_outline_flag" diff --git a/app/src/main/java/app/revanced/integrations/youtube/settings/Settings.java b/app/src/main/java/app/revanced/integrations/youtube/settings/Settings.java index bbf11fba38..a071174c80 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/settings/Settings.java +++ b/app/src/main/java/app/revanced/integrations/youtube/settings/Settings.java @@ -15,15 +15,14 @@ import java.util.HashSet; import java.util.Set; -import app.revanced.integrations.shared.Logger; +import app.revanced.integrations.shared.settings.BaseSettings; import app.revanced.integrations.shared.settings.BooleanSetting; import app.revanced.integrations.shared.settings.FloatSetting; import app.revanced.integrations.shared.settings.IntegerSetting; import app.revanced.integrations.shared.settings.LongSetting; import app.revanced.integrations.shared.settings.Setting; -import app.revanced.integrations.shared.settings.preference.SharedPrefCategory; -import app.revanced.integrations.shared.settings.BaseSettings; import app.revanced.integrations.shared.settings.StringSetting; +import app.revanced.integrations.shared.settings.preference.SharedPrefCategory; import app.revanced.integrations.youtube.sponsorblock.SponsorBlockSettings; public class Settings extends BaseSettings { @@ -167,7 +166,6 @@ public class Settings extends BaseSettings { // Action buttons public static final BooleanSetting HIDE_LIKE_DISLIKE_BUTTON = new BooleanSetting("revanced_hide_like_dislike_button", FALSE); - public static final BooleanSetting HIDE_LIVE_CHAT_BUTTON = new BooleanSetting("revanced_hide_live_chat_button", FALSE); public static final BooleanSetting HIDE_SHARE_BUTTON = new BooleanSetting("revanced_hide_share_button", FALSE); public static final BooleanSetting HIDE_REPORT_BUTTON = new BooleanSetting("revanced_hide_report_button", FALSE); public static final BooleanSetting HIDE_REMIX_BUTTON = new BooleanSetting("revanced_hide_remix_button", TRUE);