From 4ab2d2321117bd7fdeaf13c472aab049347da6e0 Mon Sep 17 00:00:00 2001 From: inotia00 Date: Sat, 6 May 2023 01:49:36 +0900 Subject: [PATCH] feat(youtube/settings): re-add to patch list --- .../youtube/misc/settings/resource/patch/SettingsPatch.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/settings/resource/patch/SettingsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/settings/resource/patch/SettingsPatch.kt index db25b95d6..55fcc2349 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/settings/resource/patch/SettingsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/settings/resource/patch/SettingsPatch.kt @@ -7,6 +7,7 @@ import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.DependsOn +import app.revanced.patcher.patch.annotations.Patch import app.revanced.patches.shared.annotation.YouTubeCompatibility import app.revanced.patches.shared.patch.options.PatchOptions import app.revanced.patches.shared.patch.settings.AbstractSettingsResourcePatch @@ -20,6 +21,7 @@ import app.revanced.util.resources.ResourceUtils import app.revanced.util.resources.ResourceUtils.copyResources import org.w3c.dom.Element +@Patch @Name("settings") @Description("Applies mandatory patches to implement ReVanced settings into the application.") @DependsOn( @@ -41,7 +43,7 @@ class SettingsPatch : AbstractSettingsResourcePatch( super.execute(context) contexts = context - /* + /** * create directory for the untranslated language resources */ context["res/values-v21"].mkdirs() @@ -61,12 +63,12 @@ class SettingsPatch : AbstractSettingsResourcePatch( context.copyResources("youtube/settings", resourceGroup) } - /* + /** * initialize ReVanced Settings */ addReVancedPreference("extended_settings") - /* + /** * remove revanced settings divider */ arrayOf("Theme.YouTube.Settings", "Theme.YouTube.Settings.Dark").forEach { themeName ->