mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-02 15:44:37 +02:00
fix(YouTube): Some strings are missing https://github.com/inotia00/ReVanced_Extended/issues/2597
This commit is contained in:
parent
88b5550df7
commit
3e7b690d76
@ -29,6 +29,7 @@ import app.revanced.util.removeStringsElements
|
||||
import app.revanced.util.valueOrThrow
|
||||
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
import org.w3c.dom.Element
|
||||
import java.nio.file.Files
|
||||
import java.util.jar.Manifest
|
||||
|
||||
private const val EXTENSION_INITIALIZATION_CLASS_DESCRIPTOR =
|
||||
@ -182,6 +183,18 @@ val settingsPatch = resourcePatch(
|
||||
copyXmlNode("youtube/settings/host", "values/$xmlFile", "resources")
|
||||
}
|
||||
|
||||
val valuesV21Directory = get("res").resolve("values-v21")
|
||||
if (!valuesV21Directory.isDirectory)
|
||||
Files.createDirectories(valuesV21Directory.toPath())
|
||||
|
||||
copyResources(
|
||||
"youtube/settings",
|
||||
ResourceGroup(
|
||||
"values-v21",
|
||||
"strings.xml"
|
||||
)
|
||||
)
|
||||
|
||||
arrayOf(
|
||||
ResourceGroup(
|
||||
"drawable",
|
||||
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Translation Exception -->
|
||||
<string name="revanced_spoof_streaming_data_side_effects_android_creator">@string/revanced_spoof_streaming_data_side_effects_android</string>
|
||||
<string name="revanced_spoof_streaming_data_side_effects_android_unplugged">@string/revanced_spoof_streaming_data_side_effects_android</string>
|
||||
<string name="revanced_spoof_streaming_data_side_effects_android_vr">@string/revanced_spoof_streaming_data_side_effects_android</string>
|
||||
</resources>
|
Loading…
x
Reference in New Issue
Block a user