Skip to content

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 bb24e0a commit 907bc9b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/resources/youtube/settings/host/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,18 @@
<string-array name="revanced_third_party_youtube_music_package_name">
<item>com.google.android.apps.youtube.music</item>
</string-array>
<string-array name="revanced_related_videos_offset_entries">
<item>-1</item>
<item>0</item>
<item>+1</item>
<item>+2</item>
</string-array>
<string-array name="revanced_related_videos_offset_entry_values">
<item>-1</item>
<item>0</item>
<item>1</item>
<item>2</item>
</string-array>
<string-array name="revanced_watch_history_type_entries">
<item>@string/revanced_watch_history_type_entry_1</item>
<item>@string/revanced_watch_history_type_entry_2</item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ Limitations:
<string name="revanced_hide_related_videos_user_dialog_message">"This setting limits the maximum number of layouts that can be loaded on the player screen.

If the layout of the player screen changes due to server-side changes, unintended layouts may be hidden on the player screen."</string>
<string name="revanced_related_videos_offset_title">Offset</string>


<!-- PreferenceScreen: General -->
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/youtube/settings/xml/revanced_prefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
</PreferenceCategory>
<PreferenceCategory android:title="@string/revanced_preference_category_experimental_flag" android:layout="@layout/revanced_settings_preferences_category">
<SwitchPreference android:title="@string/revanced_hide_related_videos_title" android:key="revanced_hide_related_videos" android:summaryOn="@string/revanced_hide_related_videos_summary_on" android:summaryOff="@string/revanced_hide_related_videos_summary_off" />
<ListPreference android:entries="@array/revanced_related_videos_offset_entries" android:title="@string/revanced_related_videos_offset_title" android:key="revanced_related_videos_offset" android:entryValues="@array/revanced_related_videos_offset_entry_values" />
</PreferenceCategory>
</PreferenceScreen>
<SwitchPreference android:title="@string/revanced_hide_album_card_title" android:key="revanced_hide_album_card" android:summaryOn="@string/revanced_hide_album_card_summary_on" android:summaryOff="@string/revanced_hide_album_card_summary_off" />
Expand Down

0 comments on commit 907bc9b

Please sign in to comment.