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 1187d8fa00..c99cbbf6f8 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 @@ -5,6 +5,7 @@ import static app.revanced.integrations.shared.utils.Utils.hideViewByLayoutParams; import static app.revanced.integrations.shared.utils.Utils.hideViewGroupByMarginLayoutParams; import static app.revanced.integrations.shared.utils.Utils.hideViewUnderCondition; +import static app.revanced.integrations.youtube.patches.utils.PatchStatus.ImageSearchButton; import static app.revanced.integrations.youtube.shared.NavigationBar.NavigationButton; import android.app.Activity; @@ -537,7 +538,7 @@ public static boolean hideSearchTermThumbnail() { *

* In this case, {@link Utils#hideViewByLayoutParams(View)} should be used. */ - private static final boolean showImageSearchButtonAndHideVoiceSearchButton = !hideImageSearchButton && hideVoiceSearchButton; + private static final boolean showImageSearchButtonAndHideVoiceSearchButton = !hideImageSearchButton && hideVoiceSearchButton && ImageSearchButton(); public static boolean hideImageSearchButton(boolean original) { return !hideImageSearchButton && original; diff --git a/app/src/main/java/app/revanced/integrations/youtube/patches/utils/PatchStatus.java b/app/src/main/java/app/revanced/integrations/youtube/patches/utils/PatchStatus.java index f7de25c642..5e73a29db1 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/patches/utils/PatchStatus.java +++ b/app/src/main/java/app/revanced/integrations/youtube/patches/utils/PatchStatus.java @@ -2,6 +2,11 @@ public class PatchStatus { + public static boolean ImageSearchButton() { + // Replace this with true if the Hide image search buttons patch succeeds + return false; + } + public static boolean PlayerButtons() { // Replace this with true if the Hide player buttons patch succeeds return false;