mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-10 19:44:36 +02:00
feat(music/settings) remove divider from settings
This commit is contained in:
parent
5fda8e2c99
commit
1b5eb0561f
@ -53,6 +53,23 @@ class SettingsPatch : AbstractSettingsResourcePatch(
|
|||||||
context.copyResources("music/settings", resourceGroup)
|
context.copyResources("music/settings", resourceGroup)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* hide divider
|
||||||
|
*/
|
||||||
|
val styleFile = context["res/values/styles.xml"]
|
||||||
|
|
||||||
|
styleFile.writeText(
|
||||||
|
styleFile.readText()
|
||||||
|
.replace(
|
||||||
|
"allowDividerAbove\">true",
|
||||||
|
"allowDividerAbove\">false"
|
||||||
|
).replace(
|
||||||
|
"allowDividerBelow\">true",
|
||||||
|
"allowDividerBelow\">false"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Copy colors
|
* Copy colors
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user