mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 13:17:46 +02:00
fix(Custom branding icon): patch options not available
This commit is contained in:
@ -61,7 +61,8 @@ object CustomBrandingIconPatch : ResourcePatch() {
|
||||
|
||||
override fun execute(context: ResourceContext) {
|
||||
AppIcon?.let { appIcon ->
|
||||
if (!availableIcon.containsKey(appIcon)) {
|
||||
val appIconValue = appIcon.lowercase().replace(" ","_")
|
||||
if (!availableIcon.containsValue(appIconValue)) {
|
||||
mipmapDirectories.map { directory ->
|
||||
ResourceGroup(
|
||||
directory, *mipmapIconResourceFileNames
|
||||
@ -83,7 +84,6 @@ object CustomBrandingIconPatch : ResourcePatch() {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
val appIconValue = availableIcon[appIcon] + ""
|
||||
val resourcePath = "music/branding/$appIconValue"
|
||||
|
||||
// change launcher icon.
|
||||
|
@ -106,7 +106,8 @@ object CustomBrandingIconPatch : ResourcePatch() {
|
||||
|
||||
override fun execute(context: ResourceContext) {
|
||||
AppIcon?.let { appIcon ->
|
||||
if (!availableIcon.containsKey(appIcon)) {
|
||||
val appIconValue = appIcon.lowercase().replace(" ","_")
|
||||
if (!availableIcon.containsValue(appIconValue)) {
|
||||
mipmapDirectories.map { directory ->
|
||||
ResourceGroup(
|
||||
directory, *mipmapIconResourceFileNames
|
||||
@ -129,7 +130,6 @@ object CustomBrandingIconPatch : ResourcePatch() {
|
||||
context.updatePatchStatusIcon("custom")
|
||||
}
|
||||
} else {
|
||||
val appIconValue = availableIcon[appIcon] + ""
|
||||
val resourcePath = "youtube/branding/$appIconValue"
|
||||
|
||||
// change launcher icon.
|
||||
|
Reference in New Issue
Block a user