From 40b22963d6e8d1dfc21410d4a5131db0f9ccc692 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Thu, 22 Feb 2024 11:39:15 +0400 Subject: [PATCH] fix: move to General layout --- api/revanced-patches.api | 1 + .../revanced/patches/youtube/layout/theme/ThemeBytecodePatch.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/revanced-patches.api b/api/revanced-patches.api index 2a3d7b29f2..0a84e31702 100644 --- a/api/revanced-patches.api +++ b/api/revanced-patches.api @@ -1618,6 +1618,7 @@ public final class app/revanced/patches/youtube/misc/settings/SettingsPatch$Pref public static final field INSTANCE Lapp/revanced/patches/youtube/misc/settings/SettingsPatch$PreferenceScreen; public fun commit (Lapp/revanced/patches/shared/misc/settings/preference/PreferenceScreen;)V public final fun getADS ()Lapp/revanced/patches/shared/misc/settings/preference/BasePreferenceScreen$Screen; + public final fun getALTERNATIVE_THUMBNAILS ()Lapp/revanced/patches/shared/misc/settings/preference/BasePreferenceScreen$Screen; public final fun getLAYOUT_FEED ()Lapp/revanced/patches/shared/misc/settings/preference/BasePreferenceScreen$Screen; public final fun getLAYOUT_GENERAL ()Lapp/revanced/patches/shared/misc/settings/preference/BasePreferenceScreen$Screen; public final fun getLAYOUT_PLAYER ()Lapp/revanced/patches/shared/misc/settings/preference/BasePreferenceScreen$Screen; diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/theme/ThemeBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/theme/ThemeBytecodePatch.kt index b0493d9367..533e57dee2 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/theme/ThemeBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/theme/ThemeBytecodePatch.kt @@ -100,7 +100,7 @@ object ThemeBytecodePatch : BytecodePatch( override fun execute(context: BytecodeContext) { AddResourcesPatch(this::class) - SettingsPatch.PreferenceScreen.LAYOUT_FEED.addPreferences( + SettingsPatch.PreferenceScreen.LAYOUT_GENERAL.addPreferences( SwitchPreference("revanced_gradient_loading_screen") )