refactor: Rename option

This commit is contained in:
oSumAtrIX 2026-03-11 02:10:08 +01:00
parent 7495528815
commit 81b24642be
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4
6 changed files with 13 additions and 13 deletions

View file

@ -8,6 +8,6 @@ public final class HideRelatedVideoOverlayPatch {
* Injection point.
*/
public static boolean hideRelatedVideoOverlay() {
return Settings.HIDE_RELATED_VIDEOS_OVERLAY.get();
return Settings.HIDE_PLAYER_RELATED_VIDEOS_OVERLAY.get();
}
}

View file

@ -240,7 +240,7 @@ public final class LayoutComponentsFilter extends Filter {
);
final var relatedVideos = new StringFilterGroup(
Settings.HIDE_RELATED_VIDEOS,
Settings.HIDE_QUICK_ACTIONS_RELATED_VIDEOS,
"fullscreen_related_videos"
);

View file

@ -187,8 +187,8 @@ public class Settings extends YouTubeAndMusicSettings {
public static final BooleanSetting HIDE_PLAYER_CONTROL_BUTTONS_BACKGROUND = new BooleanSetting("revanced_hide_player_control_buttons_background", FALSE, true);
public static final BooleanSetting HIDE_PLAYER_PREVIOUS_NEXT_BUTTONS = new BooleanSetting("revanced_hide_player_previous_next_buttons", FALSE, true);
public static final BooleanSetting HIDE_QUICK_ACTIONS = new BooleanSetting("revanced_hide_quick_actions", FALSE);
public static final BooleanSetting HIDE_RELATED_VIDEOS_OVERLAY = new BooleanSetting("revanced_hide_related_videos_overlay", FALSE, true);
public static final BooleanSetting HIDE_RELATED_VIDEOS = new BooleanSetting("revanced_hide_related_videos", FALSE);
public static final BooleanSetting HIDE_PLAYER_RELATED_VIDEOS_OVERLAY = new BooleanSetting("revanced_hide_player_related_videos_overlay", FALSE, true);
public static final BooleanSetting HIDE_QUICK_ACTIONS_RELATED_VIDEOS = new BooleanSetting("revanced_hide_quick_actions_related_videos", FALSE);
public static final BooleanSetting HIDE_SUBSCRIBERS_COMMUNITY_GUIDELINES = new BooleanSetting("revanced_hide_subscribers_community_guidelines", TRUE);
public static final BooleanSetting HIDE_TIMED_REACTIONS = new BooleanSetting("revanced_hide_timed_reactions", TRUE);
public static final BooleanSetting HIDE_VIDEO_TITLE = new BooleanSetting("revanced_hide_video_title", FALSE);

View file

@ -165,7 +165,7 @@ val hideLayoutComponentsPatch = hideLayoutComponentsPatch(
SwitchPreference("revanced_hide_live_chat_replay_button"),
SwitchPreference("revanced_hide_medical_panels"),
SwitchPreference("revanced_hide_quick_actions"),
SwitchPreference("revanced_hide_related_videos"),
SwitchPreference("revanced_hide_quick_actions_related_videos"),
SwitchPreference("revanced_hide_subscribers_community_guidelines"),
SwitchPreference("revanced_hide_timed_reactions"),
SwitchPreference("revanced_hide_video_title")

View file

@ -43,7 +43,7 @@ val hideRelatedVideoOverlayPatch = bytecodePatch(
addResources("youtube", "layout.hide.relatedvideooverlay.hideRelatedVideoOverlayPatch")
PreferenceScreen.PLAYER.addPreferences(
SwitchPreference("revanced_hide_related_videos_overlay"),
SwitchPreference("revanced_hide_player_related_videos_overlay"),
)
val relatedEndScreenResultsMethod =

View file

@ -359,10 +359,10 @@ However, enabling this will also log some user data such as your IP address."</s
<string name="revanced_hide_medical_panels_summary_off">Medical panels are shown</string>
<string name="revanced_hide_quick_actions_title">Hide quick actions</string>
<string name="revanced_hide_quick_actions_summary_on">Quick actions in fullscreen are hidden</string>
<string name="revanced_hide_quick_actions_summary_off">Quick actions in fullscreen are shown</string>
<string name="revanced_hide_related_videos_title">Hide related videos</string>
<string name="revanced_hide_related_videos_summary_on">Related videos in quick actions are hidden</string>
<string name="revanced_hide_related_videos_summary_off">Related videos in quick actions are shown</string>
<string name="revanced_hide_quick_actions_summary_off">Quick actions in fullscreen are shown</string>
<string name="revanced_hide_quick_actions_related_videos_title">Hide quick actions related videos</string>
<string name="revanced_hide_quick_actions_related_videos_summary_on">Related videos in quick actions are hidden</string>
<string name="revanced_hide_quick_actions_related_videos_summary_off">Related videos in quick actions are shown</string>
<string name="revanced_hide_subscribers_community_guidelines_title">Hide subscribers guidelines</string>
<string name="revanced_hide_subscribers_community_guidelines_summary_on">Subscribers community guidelines are hidden</string>
<string name="revanced_hide_subscribers_community_guidelines_summary_off">Subscribers community guidelines are shown</string>
@ -1112,9 +1112,9 @@ To show the Audio track menu, change \'Spoof video streams\' to \'Android No SDK
<string name="revanced_end_screen_suggested_video_summary_off">End screen suggested video is shown</string>
</patch>
<patch id="layout.hide.relatedvideooverlay.hideRelatedVideoOverlayPatch">
<string name="revanced_hide_related_videos_overlay_title">Hide related videos overlay</string>
<string name="revanced_hide_related_videos_overlay_summary_on">Related videos overlay in fullscreen is hidden</string>
<string name="revanced_hide_related_videos_overlay_summary_off">Related videos overlay in fullscreen is shown</string>
<string name="revanced_hide_player_related_videos_overlay_title">Hide related videos overlay</string>
<string name="revanced_hide_player_related_videos_overlay_summary_on">Related videos overlay in fullscreen is hidden</string>
<string name="revanced_hide_player_related_videos_overlay_summary_off">Related videos overlay in fullscreen is shown</string>
</patch>
<patch id="layout.hide.time.hideTimestampPatch">
<string name="revanced_hide_timestamp_title">Hide video timestamp</string>