mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-28 21:00:19 +02:00
feat(youtube/settings): re-add to patch list
This commit is contained in:
parent
ae49cd421a
commit
4ab2d23211
@ -7,6 +7,7 @@ import app.revanced.patcher.data.ResourceContext
|
|||||||
import app.revanced.patcher.patch.PatchResult
|
import app.revanced.patcher.patch.PatchResult
|
||||||
import app.revanced.patcher.patch.PatchResultSuccess
|
import app.revanced.patcher.patch.PatchResultSuccess
|
||||||
import app.revanced.patcher.patch.annotations.DependsOn
|
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.annotation.YouTubeCompatibility
|
||||||
import app.revanced.patches.shared.patch.options.PatchOptions
|
import app.revanced.patches.shared.patch.options.PatchOptions
|
||||||
import app.revanced.patches.shared.patch.settings.AbstractSettingsResourcePatch
|
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 app.revanced.util.resources.ResourceUtils.copyResources
|
||||||
import org.w3c.dom.Element
|
import org.w3c.dom.Element
|
||||||
|
|
||||||
|
@Patch
|
||||||
@Name("settings")
|
@Name("settings")
|
||||||
@Description("Applies mandatory patches to implement ReVanced settings into the application.")
|
@Description("Applies mandatory patches to implement ReVanced settings into the application.")
|
||||||
@DependsOn(
|
@DependsOn(
|
||||||
@ -41,7 +43,7 @@ class SettingsPatch : AbstractSettingsResourcePatch(
|
|||||||
super.execute(context)
|
super.execute(context)
|
||||||
contexts = context
|
contexts = context
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* create directory for the untranslated language resources
|
* create directory for the untranslated language resources
|
||||||
*/
|
*/
|
||||||
context["res/values-v21"].mkdirs()
|
context["res/values-v21"].mkdirs()
|
||||||
@ -61,12 +63,12 @@ class SettingsPatch : AbstractSettingsResourcePatch(
|
|||||||
context.copyResources("youtube/settings", resourceGroup)
|
context.copyResources("youtube/settings", resourceGroup)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* initialize ReVanced Settings
|
* initialize ReVanced Settings
|
||||||
*/
|
*/
|
||||||
addReVancedPreference("extended_settings")
|
addReVancedPreference("extended_settings")
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* remove revanced settings divider
|
* remove revanced settings divider
|
||||||
*/
|
*/
|
||||||
arrayOf("Theme.YouTube.Settings", "Theme.YouTube.Settings.Dark").forEach { themeName ->
|
arrayOf("Theme.YouTube.Settings", "Theme.YouTube.Settings.Dark").forEach { themeName ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user