Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit d866558

Browse files
OxrxLoSumAtrIX
andauthored
fix(youtube/hide-endscreen-cards): restore functionality (#200)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
1 parent cc2bab4 commit d866558

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package app.revanced.integrations.patches;
2+
3+
import android.view.View;
4+
5+
import app.revanced.integrations.settings.SettingsEnum;
6+
7+
public class HideEndscreenCardsPatch {
8+
//Used by app.revanced.patches.youtube.layout.hideendscreencards.bytecode.patch.HideEndscreenCardsPatch
9+
public static void hideEndscreen(View view) {
10+
if (!SettingsEnum.HIDE_ENDSCREEN_CARDS.getBoolean()) return;
11+
view.setVisibility(View.GONE);
12+
}
13+
}

app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public enum SettingsEnum {
5858
REEL_BUTTON_SHOWN("revanced_reel_button_enabled", false, ReturnType.BOOLEAN, true),
5959
HIDE_INFO_CARDS("revanced_hide_infocards", true, ReturnType.BOOLEAN),
6060
BRANDING_SHOWN("revanced_branding_watermark_enabled", false, ReturnType.BOOLEAN),
61+
HIDE_ENDSCREEN_CARDS("revanced_hide_endscreen_cards", true, ReturnType.BOOLEAN),
6162
CAST_BUTTON_SHOWN("revanced_cast_button_enabled", false, ReturnType.BOOLEAN, true),
6263
AUTOPLAY_BUTTON_SHOWN("revanced_autoplay_button_enabled", false, ReturnType.BOOLEAN, true),
6364
USE_TABLET_MINIPLAYER("revanced_tablet_miniplayer", false, ReturnType.BOOLEAN, true),

0 commit comments

Comments
 (0)