fix(YouTube/Custom branding icon YouTube): If the user changed to a custom icon through Patch Options, this was not reflected in Patch Information

This commit is contained in:
inotia00
2023-12-06 03:12:08 +09:00
parent a9c062cbce
commit 8b87bc72a9
3 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,7 @@ object CustomBrandingIconPatch : ResourcePatch() {
.split("\n")
.joinToString("\n") { it.trimIndent() } // Remove the leading whitespace from each line.
.trimIndent(), // Remove the leading newline.
required = true
)
override fun execute(context: ResourceContext) {

View File

@ -103,6 +103,7 @@ object CustomBrandingIconPatch : ResourcePatch() {
.split("\n")
.joinToString("\n") { it.trimIndent() } // Remove the leading whitespace from each line.
.trimIndent(), // Remove the leading newline.
required = true
)
override fun execute(context: ResourceContext) {
@ -127,6 +128,7 @@ object CustomBrandingIconPatch : ResourcePatch() {
)
}
}
context.updatePatchStatusIcon("custom")
}
} else {
val appIconValue = availableIcon[appIcon] + ""