mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-09 11:04:36 +02:00
feat(reddit): remove decoding-patch
that are no longer used
This commit is contained in:
parent
6686088fc8
commit
ed6a45a269
@ -1,28 +0,0 @@
|
||||
package app.revanced.patches.reddit.utils.fix.decoding.patch
|
||||
|
||||
import app.revanced.patcher.data.ResourceContext
|
||||
import app.revanced.patcher.patch.ResourcePatch
|
||||
|
||||
class DecodingPatch : ResourcePatch {
|
||||
override fun execute(context: ResourceContext) {
|
||||
|
||||
arrayOf(
|
||||
"res/layout/notification_media_cancel_action.xml",
|
||||
"res/values/styles.xml"
|
||||
).forEach { xmlPath ->
|
||||
context[xmlPath].apply {
|
||||
writeText(
|
||||
readText()
|
||||
.replace(
|
||||
"@android:drawable/cling_button",
|
||||
"@android:drawable/sym_def_app_icon"
|
||||
).replace(
|
||||
"@android:drawable/ab_share_pack_material",
|
||||
"@android:drawable/ic_menu_close_clear_cancel"
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -8,7 +8,6 @@ import app.revanced.patcher.patch.ResourcePatch
|
||||
import app.revanced.patcher.patch.annotations.DependsOn
|
||||
import app.revanced.patcher.patch.annotations.Patch
|
||||
import app.revanced.patches.reddit.utils.annotations.RedditCompatibility
|
||||
import app.revanced.patches.reddit.utils.fix.decoding.patch.DecodingPatch
|
||||
import app.revanced.patches.reddit.utils.integrations.patch.IntegrationsPatch
|
||||
import app.revanced.patches.reddit.utils.settings.bytecode.patch.SettingsBytecodePatch
|
||||
import kotlin.io.path.exists
|
||||
@ -18,7 +17,6 @@ import kotlin.io.path.exists
|
||||
@Description("Adds ReVanced settings to Reddit.")
|
||||
@DependsOn(
|
||||
[
|
||||
DecodingPatch::class,
|
||||
IntegrationsPatch::class,
|
||||
SettingsBytecodePatch::class
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user