mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-05 17:14:35 +02:00
refactor: split Layout settings into General layout settings
and Other layout settings
This commit is contained in:
parent
eaf6bd9bd8
commit
9030abe616
@ -92,11 +92,10 @@ class GeneralAdsPatch : ResourcePatch {
|
||||
"PREFERENCE: ADS_SETTINGS",
|
||||
"SETTINGS: HIDE_GENERAL_ADS",
|
||||
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: GENERAL",
|
||||
"PREFERENCE: GENERAL_LAYOUT_SETTINGS",
|
||||
"SETTINGS: HIDE_GENERAL_LAYOUT_ADS",
|
||||
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE: GENERAL_LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: PLAYER",
|
||||
"SETTINGS: HIDE_VIEW_PRODUCT"
|
||||
)
|
||||
|
@ -32,7 +32,7 @@ class ButtonContainerPatch : ResourcePatch {
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE: OTHER_LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: BOTTOM_PLAYER",
|
||||
"SETTINGS: BUTTON_CONTAINER"
|
||||
)
|
||||
|
@ -32,7 +32,7 @@ class CommentComponentPatch : ResourcePatch {
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE: OTHER_LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: BOTTOM_PLAYER",
|
||||
"SETTINGS: COMMENT_COMPONENT"
|
||||
)
|
||||
|
@ -32,7 +32,7 @@ class FlyoutPanelPatch : ResourcePatch {
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE: OTHER_LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: FLYOUT_PANEL",
|
||||
"SETTINGS: FLYOUT_PANEL_COMPONENT"
|
||||
)
|
||||
|
@ -45,7 +45,7 @@ class OldQualityLayoutPatch : BytecodePatch(
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE: OTHER_LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: FLYOUT_PANEL",
|
||||
"SETTINGS: ENABLE_OLD_QUALITY_LAYOUT"
|
||||
)
|
||||
|
@ -85,7 +85,7 @@ class HideEndscreenOverlayPatch : BytecodePatch() {
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE: OTHER_LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: FULLSCREEN",
|
||||
"SETTINGS: HIDE_ENDSCREEN_OVERLAY"
|
||||
)
|
||||
|
@ -61,7 +61,7 @@ class HideFilmstripOverlayPatch : BytecodePatch(
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE: OTHER_LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: FULLSCREEN",
|
||||
"SETTINGS: HIDE_FILMSTRIP_OVERLAY"
|
||||
)
|
||||
|
@ -62,7 +62,7 @@ class HideFullscreenPanelsPatch : BytecodePatch(
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE: OTHER_LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: FULLSCREEN",
|
||||
"SETTINGS: HIDE_FULLSCREEN_PANELS"
|
||||
)
|
||||
|
@ -56,7 +56,7 @@ class HapticFeedBackPatch : BytecodePatch(
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE: OTHER_LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: FULLSCREEN",
|
||||
"SETTINGS: DISABLE_HAPTIC_FEEDBACK"
|
||||
)
|
||||
|
@ -69,8 +69,7 @@ class AutoCaptionsPatch : BytecodePatch(
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: GENERAL",
|
||||
"PREFERENCE: GENERAL_LAYOUT_SETTINGS",
|
||||
"SETTINGS: HIDE_AUTO_CAPTIONS"
|
||||
)
|
||||
)
|
||||
|
@ -49,8 +49,7 @@ class PlayerPopupPanelsPatch : BytecodePatch(
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: GENERAL",
|
||||
"PREFERENCE: GENERAL_LAYOUT_SETTINGS",
|
||||
"SETTINGS: HIDE_AUTO_PLAYER_POPUP_PANELS"
|
||||
)
|
||||
)
|
||||
|
@ -76,8 +76,7 @@ class CrowdfundingBoxPatch : BytecodePatch() {
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: GENERAL",
|
||||
"PREFERENCE: GENERAL_LAYOUT_SETTINGS",
|
||||
"SETTINGS: HIDE_CROWDFUNDING_BOX"
|
||||
)
|
||||
)
|
||||
|
@ -80,8 +80,7 @@ class HeaderSwitchPatch : BytecodePatch() {
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: GENERAL",
|
||||
"PREFERENCE: GENERAL_LAYOUT_SETTINGS",
|
||||
"SETTINGS: HEADER_SWITCH"
|
||||
)
|
||||
)
|
||||
|
@ -56,8 +56,7 @@ class MixPlaylistsPatch : BytecodePatch(
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: GENERAL",
|
||||
"PREFERENCE: GENERAL_LAYOUT_SETTINGS",
|
||||
"SETTINGS: HIDE_MIX_PLAYLISTS"
|
||||
)
|
||||
)
|
||||
|
@ -48,8 +48,7 @@ class HideEmailAddressPatch : BytecodePatch(
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: GENERAL",
|
||||
"PREFERENCE: GENERAL_LAYOUT_SETTINGS",
|
||||
"SETTINGS: HIDE_EMAIL_ADDRESS"
|
||||
)
|
||||
)
|
||||
|
@ -73,8 +73,7 @@ class CreateButtonRemoverPatch : BytecodePatch(
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: GENERAL",
|
||||
"PREFERENCE: GENERAL_LAYOUT_SETTINGS",
|
||||
"SETTINGS: HIDE_CREATE_BUTTON"
|
||||
)
|
||||
)
|
||||
|
@ -77,8 +77,7 @@ class ShortsButtonRemoverPatch : BytecodePatch(
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: GENERAL",
|
||||
"PREFERENCE: GENERAL_LAYOUT_SETTINGS",
|
||||
"SETTINGS: SHORTS_COMPONENT.PARENT",
|
||||
"SETTINGS: SHORTS_COMPONENT_PARENT.A",
|
||||
"SETTINGS: HIDE_SHORTS_BUTTON"
|
||||
|
@ -111,8 +111,7 @@ class ShortsComponentPatch : BytecodePatch() {
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: GENERAL",
|
||||
"PREFERENCE: GENERAL_LAYOUT_SETTINGS",
|
||||
"SETTINGS: SHORTS_COMPONENT.PARENT",
|
||||
"SETTINGS: SHORTS_COMPONENT_PARENT.A",
|
||||
"SETTINGS: SHORTS_COMPONENT_PARENT.B",
|
||||
|
@ -47,8 +47,7 @@ class HideSnackbarPatch : BytecodePatch(
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: GENERAL",
|
||||
"PREFERENCE: GENERAL_LAYOUT_SETTINGS",
|
||||
"SETTINGS: HIDE_SNACKBAR"
|
||||
)
|
||||
)
|
||||
|
@ -53,8 +53,7 @@ class HideShortsOnStartupPatch : BytecodePatch(
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: GENERAL",
|
||||
"PREFERENCE: GENERAL_LAYOUT_SETTINGS",
|
||||
"SETTINGS: SHORTS_COMPONENT.PARENT",
|
||||
"SETTINGS: SHORTS_COMPONENT_PARENT.B",
|
||||
"SETTINGS: HIDE_STARTUP_SHORTS_PLAYER"
|
||||
|
@ -79,8 +79,7 @@ class HideStoriesPatch : BytecodePatch() {
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: GENERAL",
|
||||
"PREFERENCE: GENERAL_LAYOUT_SETTINGS",
|
||||
"SETTINGS: HIDE_STORIES_SHELF"
|
||||
)
|
||||
)
|
||||
|
@ -65,8 +65,7 @@ class TabletMiniPlayerPatch : BytecodePatch(
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: GENERAL",
|
||||
"PREFERENCE: GENERAL_LAYOUT_SETTINGS",
|
||||
"SETTINGS: ENABLE_TABLET_MINIPLAYER"
|
||||
)
|
||||
)
|
||||
|
@ -58,8 +58,7 @@ class WideSearchbarPatch : BytecodePatch(
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: GENERAL",
|
||||
"PREFERENCE: GENERAL_LAYOUT_SETTINGS",
|
||||
"SETTINGS: ENABLE_WIDE_SEARCHBAR"
|
||||
)
|
||||
)
|
||||
|
@ -72,7 +72,7 @@ class HideAutoplayButtonPatch : BytecodePatch(
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE: OTHER_LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: PLAYER",
|
||||
"SETTINGS: HIDE_AUTOPLAY_BUTTON"
|
||||
)
|
||||
|
@ -50,7 +50,7 @@ class HideCaptionsButtonBytecodePatch : BytecodePatch(
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE: OTHER_LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: PLAYER",
|
||||
"SETTINGS: HIDE_CAPTIONS_BUTTON"
|
||||
)
|
||||
|
@ -43,7 +43,7 @@ class HideCastButtonPatch : BytecodePatch() {
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE: OTHER_LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: PLAYER",
|
||||
"SETTINGS: HIDE_CAST_BUTTON"
|
||||
)
|
||||
|
@ -60,7 +60,7 @@ class HideEndscreenCardsPatch : BytecodePatch(
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE: OTHER_LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: PLAYER",
|
||||
"SETTINGS: HIDE_ENDSCREEN_CARDS"
|
||||
)
|
||||
|
@ -45,7 +45,7 @@ class HideInfocardsPatch : BytecodePatch(
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE: OTHER_LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: PLAYER",
|
||||
"SETTINGS: HIDE_INFO_CARDS"
|
||||
)
|
||||
|
@ -32,7 +32,7 @@ class HideLiveChatButtonPatch : ResourcePatch {
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE: OTHER_LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: PLAYER",
|
||||
"SETTINGS: HIDE_LIVE_CHATS_BUTTON"
|
||||
)
|
||||
|
@ -32,7 +32,7 @@ class HideNextPrevButtonPatch : ResourcePatch {
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE: OTHER_LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: PLAYER",
|
||||
"SETTINGS: HIDE_NEXT_BUTTON",
|
||||
"SETTINGS: HIDE_PREV_BUTTON"
|
||||
|
@ -92,7 +92,7 @@ class PlayerOverlayFilterPatch : BytecodePatch() {
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE: OTHER_LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: PLAYER",
|
||||
"SETTINGS: HIDE_PLAYER_OVERLAY_FILTER"
|
||||
)
|
||||
|
@ -77,7 +77,7 @@ class SuggestedActionsPatch : BytecodePatch() {
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE: OTHER_LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: PLAYER",
|
||||
"SETTINGS: HIDE_SUGGESTED_ACTION"
|
||||
)
|
||||
|
@ -56,7 +56,7 @@ class HideChannelWatermarkBytecodePatch : BytecodePatch(
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE: OTHER_LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: PLAYER",
|
||||
"SETTINGS: HIDE_CHANNEL_WATERMARK"
|
||||
)
|
||||
|
@ -82,7 +82,7 @@ class SeekbarColorPatch : BytecodePatch() {
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE: OTHER_LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: SEEKBAR",
|
||||
"SETTINGS: CUSTOM_SEEKBAR_COLOR"
|
||||
)
|
||||
|
@ -92,7 +92,7 @@ class SeekbarTappingPatch : BytecodePatch(
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE: OTHER_LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: SEEKBAR",
|
||||
"SETTINGS: ENABLE_SEEKBAR_TAPPING"
|
||||
)
|
||||
|
@ -65,7 +65,7 @@ class HideTimeAndSeekbarPatch : BytecodePatch(
|
||||
*/
|
||||
SettingsPatch.addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE: OTHER_LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: SEEKBAR",
|
||||
"SETTINGS: HIDE_TIME_AND_SEEKBAR"
|
||||
)
|
||||
|
@ -76,11 +76,9 @@
|
||||
</PreferenceScreen>PREFERENCE: SWIPE_SETTINGS -->
|
||||
|
||||
|
||||
<!-- PREFERENCE: LAYOUT_SETTINGS
|
||||
<PreferenceScreen android:title="@string/revanced_layout_settings_title" android:key="layout" android:summary="@string/revanced_layout_settings_summary">PREFERENCE: LAYOUT_SETTINGS -->
|
||||
|
||||
<!-- PREFERENCE_HEADER: GENERAL
|
||||
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_layout_settings_general" />PREFERENCE_HEADER: GENERAL -->
|
||||
<!-- PREFERENCE: GENERAL_LAYOUT_SETTINGS
|
||||
<PreferenceScreen android:title="@string/revanced_general_layout_settings_title" android:key="general_layout" android:summary="@string/revanced_general_layout_settings_summary">
|
||||
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_general_layout_settings_title" />PREFERENCE: GENERAL_LAYOUT_SETTINGS -->
|
||||
|
||||
<!-- SETTINGS: HIDE_STORIES_SHELF
|
||||
<SwitchPreference android:title="@string/revanced_hide_stories_shelf_title" android:key="revanced_hide_stories_shelf" android:defaultValue="true" android:summaryOn="@string/revanced_hide_stories_shelf_summary_on" android:summaryOff="@string/revanced_hide_stories_shelf_summary_off" />SETTINGS: HIDE_STORIES_SHELF -->
|
||||
@ -169,6 +167,12 @@
|
||||
<!-- SETTINGS: HEADER_SWITCH
|
||||
<SwitchPreference android:title="@string/revanced_override_premium_header_title" android:key="revanced_override_premium_header" android:defaultValue="false" android:summaryOn="@string/revanced_override_premium_header_summary_on" android:summaryOff="@string/revanced_override_premium_header_summary_off" />SETTINGS: HEADER_SWITCH -->
|
||||
|
||||
<!-- PREFERENCE: GENERAL_LAYOUT_SETTINGS
|
||||
</PreferenceScreen>PREFERENCE: GENERAL_LAYOUT_SETTINGS -->
|
||||
|
||||
<!-- PREFERENCE: OTHER_LAYOUT_SETTINGS
|
||||
<PreferenceScreen android:title="@string/revanced_other_layout_settings_title" android:key="other_layout" android:summary="@string/revanced_other_layout_settings_summary">PREFERENCE: OTHER_LAYOUT_SETTINGS -->
|
||||
|
||||
<!-- PREFERENCE_HEADER: PLAYER
|
||||
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_layout_settings_player" />PREFERENCE_HEADER: PLAYER -->
|
||||
|
||||
@ -290,8 +294,8 @@
|
||||
<!-- SETTINGS: HIDE_TIME_AND_SEEKBAR
|
||||
<SwitchPreference android:title="@string/revanced_hide_time_and_seekbar_title" android:key="revanced_hide_time_and_seekbar" android:defaultValue="false" android:summaryOn="@string/revanced_hide_time_and_seekbar_summary_on" android:summaryOff="@string/revanced_hide_time_and_seekbar_summary_off" />SETTINGS: HIDE_TIME_AND_SEEKBAR -->
|
||||
|
||||
<!-- PREFERENCE: LAYOUT_SETTINGS
|
||||
</PreferenceScreen>PREFERENCE: LAYOUT_SETTINGS -->
|
||||
<!-- PREFERENCE: OTHER_LAYOUT_SETTINGS
|
||||
</PreferenceScreen>PREFERENCE: OTHER_LAYOUT_SETTINGS -->
|
||||
|
||||
|
||||
<!-- PREFERENCE: OVERLAY_BUTTONS
|
||||
@ -353,7 +357,7 @@
|
||||
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_swipe_controls_title" />
|
||||
<Preference android:title="swipe-controls" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
||||
|
||||
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_layout_settings_general" />
|
||||
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_general_layout_settings_title" />
|
||||
<Preference android:title="hide-stories" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
||||
<Preference android:title="hide-create-button" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
||||
<Preference android:title="hide-shorts-button" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user