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") .split("\n")
.joinToString("\n") { it.trimIndent() } // Remove the leading whitespace from each line. .joinToString("\n") { it.trimIndent() } // Remove the leading whitespace from each line.
.trimIndent(), // Remove the leading newline. .trimIndent(), // Remove the leading newline.
required = true
) )
override fun execute(context: ResourceContext) { override fun execute(context: ResourceContext) {

View File

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

View File

@ -67,6 +67,7 @@ Since it hasn't been tested, it most likely won't work."</string>
<string name="revanced_hide_subscriptions_button_title">@string/revanced_hide_shorts_player_subscriptions_button_title</string> <string name="revanced_hide_subscriptions_button_title">@string/revanced_hide_shorts_player_subscriptions_button_title</string>
<string name="revanced_header_default">Stock</string> <string name="revanced_header_default">Stock</string>
<string name="revanced_icon_custom">Custom</string>
<string name="revanced_icon_default">Stock</string> <string name="revanced_icon_default">Stock</string>
<string name="revanced_icon_mmt">MMT</string> <string name="revanced_icon_mmt">MMT</string>
<string name="revanced_icon_revancify_blue">Revancify Blue</string> <string name="revanced_icon_revancify_blue">Revancify Blue</string>