From 31366b6a8025279655799041de1700c450f67922 Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Sun, 19 May 2024 12:45:51 +0900 Subject: [PATCH] feat(YouTube/Toolbar components): remove `Hide trending searches` setting https://github.com/inotia00/ReVanced_Extended/issues/1993 --- .../integrations/youtube/patches/general/GeneralPatch.java | 4 ---- .../app/revanced/integrations/youtube/settings/Settings.java | 1 - 2 files changed, 5 deletions(-) diff --git a/app/src/main/java/app/revanced/integrations/youtube/patches/general/GeneralPatch.java b/app/src/main/java/app/revanced/integrations/youtube/patches/general/GeneralPatch.java index 181c50402e..7fab3c166e 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/patches/general/GeneralPatch.java +++ b/app/src/main/java/app/revanced/integrations/youtube/patches/general/GeneralPatch.java @@ -605,10 +605,6 @@ public static boolean hideSearchTermThumbnail() { return Settings.HIDE_SEARCH_TERM_THUMBNAIL.get(); } - public static boolean hideTrendingSearches(boolean original) { - return Settings.HIDE_TRENDING_SEARCHES.get() || original; - } - public static void hideVoiceSearchButton(View view) { hideViewUnderCondition( Settings.HIDE_VOICE_SEARCH_BUTTON.get(), 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 29db8ce9a4..d5ed6410fc 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 @@ -159,7 +159,6 @@ public class Settings extends BaseSettings { public static final BooleanSetting HIDE_TOOLBAR_CREATE_BUTTON = new BooleanSetting("revanced_hide_toolbar_create_button", FALSE, true); public static final BooleanSetting HIDE_TOOLBAR_NOTIFICATION_BUTTON = new BooleanSetting("revanced_hide_toolbar_notification_button", FALSE, true); public static final BooleanSetting HIDE_SEARCH_TERM_THUMBNAIL = new BooleanSetting("revanced_hide_search_term_thumbnail", FALSE); - public static final BooleanSetting HIDE_TRENDING_SEARCHES = new BooleanSetting("revanced_hide_trending_searches", TRUE); public static final BooleanSetting HIDE_VOICE_SEARCH_BUTTON = new BooleanSetting("revanced_hide_voice_search_button", FALSE, true); public static final BooleanSetting REPLACE_TOOLBAR_CREATE_BUTTON = new BooleanSetting("revanced_replace_toolbar_create_button", FALSE, true); public static final BooleanSetting REPLACE_TOOLBAR_CREATE_BUTTON_TYPE = new BooleanSetting("revanced_replace_toolbar_create_button_type", FALSE, true);