feat(YouTube/Custom branding icon): add old splash animation for Revancify Red and Revancify Blue

This commit is contained in:
inotia00
2024-07-05 14:52:05 +09:00
parent 97db179af3
commit 4866308321
20 changed files with 261 additions and 8 deletions

View File

@ -145,13 +145,13 @@ fun ResourceContext.copyXmlNode(
resourceDirectory: String,
targetResource: String,
elementTag: String
) {
val stringsResourceInputStream =
inputStreamFromBundledResource(resourceDirectory, targetResource)!!
) = inputStreamFromBundledResource(
resourceDirectory,
targetResource
)?.let { inputStream ->
// Copy nodes from the resources node to the real resource node
elementTag.copyXmlNode(
this.xmlEditor[stringsResourceInputStream],
this.xmlEditor[inputStream],
this.xmlEditor["res/$targetResource"]
).close()
}