feat(twitch): settings patch (#1075)

Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
Tim Schneeberger
2022-11-28 23:50:04 +01:00
committed by GitHub
parent 1348b589b3
commit 4b6ec32d41
14 changed files with 332 additions and 14 deletions

View File

@ -33,17 +33,6 @@ class SettingsResourcePatch : AbstractSettingsResourcePatch(
override fun execute(context: ResourceContext): PatchResult {
super.execute(context)
/*
* used for self-restart
*/
context.xmlEditor["AndroidManifest.xml"].use { editor ->
editor.file.getElementsByTagName("manifest").item(0).also {
it.appendChild(it.ownerDocument.createElement("uses-permission").also { element ->
element.setAttribute("android:name", "android.permission.SCHEDULE_EXACT_ALARM")
})
}
}
/*
* used by a fingerprint of SettingsPatch
*/