mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-13 05:37:40 +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) {
|
override fun execute(context: ResourceContext) {
|
||||||
AppIcon?.let { appIcon ->
|
AppIcon?.let { appIcon ->
|
||||||
if (!availableIcon.containsKey(appIcon)) {
|
val appIconValue = appIcon.lowercase().replace(" ","_")
|
||||||
|
if (!availableIcon.containsValue(appIconValue)) {
|
||||||
mipmapDirectories.map { directory ->
|
mipmapDirectories.map { directory ->
|
||||||
ResourceGroup(
|
ResourceGroup(
|
||||||
directory, *mipmapIconResourceFileNames
|
directory, *mipmapIconResourceFileNames
|
||||||
@ -83,7 +84,6 @@ object CustomBrandingIconPatch : ResourcePatch() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
val appIconValue = availableIcon[appIcon] + ""
|
|
||||||
val resourcePath = "music/branding/$appIconValue"
|
val resourcePath = "music/branding/$appIconValue"
|
||||||
|
|
||||||
// change launcher icon.
|
// change launcher icon.
|
||||||
|
@ -106,7 +106,8 @@ object CustomBrandingIconPatch : ResourcePatch() {
|
|||||||
|
|
||||||
override fun execute(context: ResourceContext) {
|
override fun execute(context: ResourceContext) {
|
||||||
AppIcon?.let { appIcon ->
|
AppIcon?.let { appIcon ->
|
||||||
if (!availableIcon.containsKey(appIcon)) {
|
val appIconValue = appIcon.lowercase().replace(" ","_")
|
||||||
|
if (!availableIcon.containsValue(appIconValue)) {
|
||||||
mipmapDirectories.map { directory ->
|
mipmapDirectories.map { directory ->
|
||||||
ResourceGroup(
|
ResourceGroup(
|
||||||
directory, *mipmapIconResourceFileNames
|
directory, *mipmapIconResourceFileNames
|
||||||
@ -129,7 +130,6 @@ object CustomBrandingIconPatch : ResourcePatch() {
|
|||||||
context.updatePatchStatusIcon("custom")
|
context.updatePatchStatusIcon("custom")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
val appIconValue = availableIcon[appIcon] + ""
|
|
||||||
val resourcePath = "youtube/branding/$appIconValue"
|
val resourcePath = "youtube/branding/$appIconValue"
|
||||||
|
|
||||||
// change launcher icon.
|
// change launcher icon.
|
||||||
|
Reference in New Issue
Block a user