feat(youtube/settings): re-add to patch list

This commit is contained in:
inotia00 2023-05-06 01:49:36 +09:00
parent ae49cd421a
commit 4ab2d23211

View File

@ -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 ->