Modern Apps git

← Modern-Apps.git

youpipe: fix NoSuchMethodError on Android 12 URL decode (#862)

Commit
eff0c0fae0f185dfb09ff88ab9d3c5961ece4ebc
Author
vayun-mathur <[email protected]>
When
2026-10-24 05:06 UTC (1 month ago)
Parents
92efa68

Diff

youpipe/extractor/src/main/kotlin/org/schabi/newpipe/extractor/utils/Utils.kt
diff --git a/youpipe/extractor/src/main/kotlin/org/schabi/newpipe/extractor/utils/Utils.kt b/youpipe/extractor/src/main/kotlin/org/schabi/newpipe/extractor/utils/Utils.ktindex c59500ba81..dd1124806f 100644--- a/youpipe/extractor/src/main/kotlin/org/schabi/newpipe/extractor/utils/Utils.kt+++ b/youpipe/extractor/src/main/kotlin/org/schabi/newpipe/extractor/utils/Utils.kt@@ -24,7 +24,7 @@ object Utils {      * @return The encoded URL.      */     @JvmStatic-    fun encodeUrlUtf8(string: String): String = URLEncoder.encode(string, Charsets.UTF_8)+    fun encodeUrlUtf8(string: String): String = URLEncoder.encode(string, Charsets.UTF_8.name())      /**      * Decodes a URL using the UTF-8 character set.@@ -32,7 +32,7 @@ object Utils {      * @return The decoded URL.      */     @JvmStatic-    fun decodeUrlUtf8(url: String): String = URLDecoder.decode(url, Charsets.UTF_8)+    fun decodeUrlUtf8(url: String): String = URLDecoder.decode(url, Charsets.UTF_8.name())      /**      * Escape text for embedding in HTML, as element content or inside a double-quoted