Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
feat(YouTube/Hide feed components): add offset for `Hide related vide…
Browse files Browse the repository at this point in the history
…os` setting
  • Loading branch information
inotia00 committed Sep 28, 2024
1 parent 08ca502 commit 4928420
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
public final class RelatedVideoPatch {
private static final boolean HIDE_RELATED_VIDEOS = Settings.HIDE_RELATED_VIDEOS.get();

private static final int OFFSET = Settings.RELATED_VIDEOS_OFFSET.get();

// video title,channel bar, video action bar, comment
private static final int MAX_ITEM_COUNT = 4;
private static final int MAX_ITEM_COUNT = 4 + OFFSET;

private static final AtomicBoolean engagementPanelOpen = new AtomicBoolean(false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ public class Settings extends BaseSettings {

// Experimental Flags
public static final BooleanSetting HIDE_RELATED_VIDEOS = new BooleanSetting("revanced_hide_related_videos", FALSE, true, "revanced_hide_related_videos_user_dialog_message");
public static final IntegerSetting RELATED_VIDEOS_OFFSET = new IntegerSetting("revanced_related_videos_offset", 1, true, parent(HIDE_RELATED_VIDEOS));


// PreferenceScreen: General
Expand Down

0 comments on commit 4928420

Please sign in to comment.