Skip to content

Commit d45d0c2

Browse files
refactor
1 parent ec4c8fe commit d45d0c2

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

β€Žextensions/shared/library/src/main/java/app/revanced/extension/shared/patches/CustomBrandingPatch.javaβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private String packageAndNameIndexToClassAlias(String packageName, int appIndex)
6363
}
6464

6565
// Original icon is quantum_ic_video_youtube_white_24
66-
notificationSmallIcon = Utils.getResourceIdentifier(fileName, "drawable");
66+
notificationSmallIcon = Utils.getResourceIdentifier(fileName, "mipmap");
6767
if (notificationSmallIcon == 0) {
6868
Logger.printException(() -> "Could not load notification small icon");
6969
}

β€Žpatches/src/main/kotlin/app/revanced/patches/shared/layout/branding/BaseCustomBrandingPatch.ktβ€Ž

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,21 +220,22 @@ internal fun baseCustomBrandingPatch(
220220

221221
copyResources(
222222
"custom-branding",
223-
// ReVanced notification icon (all branding styles use the same icon).
223+
// ReVanced notification icon (all preset styles use the same icon).
224224
ResourceGroup(
225-
"drawable",
225+
"mipmap-anydpi",
226226
"$NOTIFICATION_ICON_SMALL.xml"
227227
),
228228

229229
// Copy template user icon, because the aliases must be added even if no user icon is provided.
230230
ResourceGroup(
231231
"drawable",
232232
USER_CUSTOM_MONOCHROME_FILE_NAME,
233-
USER_CUSTOM_NOTIFICATION_ICON_FILE_NAME
233+
234234
),
235235
ResourceGroup(
236236
"mipmap-anydpi",
237237
"$LAUNCHER_RESOURCE_NAME_PREFIX$CUSTOM_USER_ICON_STYLE_NAME.xml",
238+
USER_CUSTOM_NOTIFICATION_ICON_FILE_NAME
238239
)
239240
)
240241

0 commit comments

Comments
Β (0)