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

Commit

Permalink
fix(YouTube): Merge Hide floating microphone patch into `Hide layou…
Browse files Browse the repository at this point in the history
…t components`
  • Loading branch information
LisoUseInAIKyrios committed Oct 22, 2024
1 parent ef99ff2 commit e31fb49
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 10 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,38 @@ public static void hideCrowdfundingBox(View view) {
Utils.hideViewBy0dpUnderCondition(Settings.HIDE_CROWDFUNDING_BOX, view);
}

/**
* Injection point.
*/
public static boolean hideFloatingMicrophoneButton(final boolean original) {
return original || Settings.HIDE_FLOATING_MICROPHONE_BUTTON.get();
}

/**
* Injection point.
*/
public static int hideInFeed(final int height) {
return Settings.HIDE_FILTER_BAR_FEED_IN_FEED.get()
? 0
: height;
}

/**
* Injection point.
*/
public static int hideInSearch(int height) {
return Settings.HIDE_FILTER_BAR_FEED_IN_SEARCH.get()
? 0
: height;
}

/**
* Injection point.
*/
public static void hideInRelatedVideos(View chipView) {
Utils.hideViewBy0dpUnderCondition(Settings.HIDE_FILTER_BAR_FEED_IN_RELATED_VIDEOS, chipView);
}

private static final boolean HIDE_DOODLES_ENABLED = Settings.HIDE_DOODLES.get();

/**
Expand Down

0 comments on commit e31fb49

Please sign in to comment.