mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-14 21:37:17 +02:00
refactor(hide-double-tap-overlay-filter): also hide the 'white circle overlay' https://github.com/inotia00/ReVanced_Extended/issues/745
This commit is contained in:
parent
6589cf6379
commit
03d3e0ca28
@ -22,8 +22,17 @@ class DoubleTapOverlayBackgroundPatch : ResourcePatch {
|
|||||||
override fun execute(context: ResourceContext): PatchResult {
|
override fun execute(context: ResourceContext): PatchResult {
|
||||||
context.xmlEditor[RESOURCE_FILE_PATH].use {
|
context.xmlEditor[RESOURCE_FILE_PATH].use {
|
||||||
it.file.getElementsByTagName("merge").item(0).childNodes.apply {
|
it.file.getElementsByTagName("merge").item(0).childNodes.apply {
|
||||||
|
val attributes = arrayOf("height", "width")
|
||||||
for (i in 1 until length) {
|
for (i in 1 until length) {
|
||||||
val view = item(i)
|
val view = item(i)
|
||||||
|
if (
|
||||||
|
view.hasAttributes() &&
|
||||||
|
view.attributes.getNamedItem("android:id").nodeValue.endsWith("tap_bloom_view")
|
||||||
|
) {
|
||||||
|
attributes.forEach { attribute ->
|
||||||
|
view.attributes.getNamedItem("android:layout_$attribute").nodeValue = "0.0dip"
|
||||||
|
}
|
||||||
|
}
|
||||||
if (
|
if (
|
||||||
view.hasAttributes() &&
|
view.hasAttributes() &&
|
||||||
view.attributes.getNamedItem("android:id").nodeValue.endsWith("dark_background")
|
view.attributes.getNamedItem("android:id").nodeValue.endsWith("dark_background")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user