From 115ff0d76db7aac59679eec221810bc3aaa3115f Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Mon, 21 Oct 2024 20:27:31 +0900 Subject: [PATCH] fix(YouTube Music/Custom branding icon): patch fails on certain versions --- .../music/layout/branding/icon/CustomBrandingIconPatch.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/kotlin/app/revanced/patches/music/layout/branding/icon/CustomBrandingIconPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/branding/icon/CustomBrandingIconPatch.kt index d91de4498..d52981c9c 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/branding/icon/CustomBrandingIconPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/branding/icon/CustomBrandingIconPatch.kt @@ -236,6 +236,9 @@ object CustomBrandingIconPatch : BaseResourcePatch( if (!SettingsPatch.upward0723) { return } + if (appIcon == "youtube_music") { + return + } fun getAdaptiveIconResourceFile(tag: String): String { context.xmlEditor["res/mipmap-anydpi/ic_launcher_release.xml"].use { editor ->