Compare commits

..

3 Commits

Author SHA1 Message Date
semantic-release-bot
d32782962f chore(release): 2.143.0-dev.2 [skip ci]
# [2.143.0-dev.2](https://github.com/revanced/revanced-patches/compare/v2.143.0-dev.1...v2.143.0-dev.2) (2022-12-14)

### Bug Fixes

* **predictive-back-gesture:** create attribute, if it does not exist ([e6e5864](e6e5864450))
2022-12-14 00:01:51 +00:00
oSumAtrIX
0fe7cacb31 ci: only back-merge from main branch to dev 2022-12-14 00:59:12 +01:00
oSumAtrIX
e6e5864450 fix(predictive-back-gesture): create attribute, if it does not exist 2022-12-14 00:47:03 +01:00
4 changed files with 15 additions and 7 deletions

View File

@@ -42,7 +42,7 @@
[
"@saithodev/semantic-release-backmerge",
{
"branches": ["dev"]
"branches": [{from: "main", to: "dev"}]
}
]
]

View File

@@ -1,3 +1,10 @@
# [2.143.0-dev.2](https://github.com/revanced/revanced-patches/compare/v2.143.0-dev.1...v2.143.0-dev.2) (2022-12-14)
### Bug Fixes
* **predictive-back-gesture:** create attribute, if it does not exist ([c00e771](https://github.com/revanced/revanced-patches/commit/c00e7717053f806e3b5b3f0bf0ca9c2da07c289b))
# [2.143.0-dev.1](https://github.com/revanced/revanced-patches/compare/v2.142.0...v2.143.0-dev.1) (2022-12-13)

View File

@@ -1,2 +1,2 @@
kotlin.code.style = official
version = 2.143.0-dev.1
version = 2.143.0-dev.2

View File

@@ -19,11 +19,12 @@ class PredictiveBackGesturePatch : ResourcePatch {
val document = editor.file
with(document.getElementsByTagName("application").item(0)) {
attributes.getNamedItem(FLAG)?.let {
document.createAttribute(FLAG)
.apply { value = "true" }
.let(attributes::setNamedItem)
}
if (attributes.getNamedItem(FLAG) != null) return@with
document.createAttribute(FLAG)
.apply { value = "true" }
.let(attributes::setNamedItem)
}
}