Skip to content

Commit b9f85bc

Browse files
Fix notification small icon color?
1 parent 776ab6f commit b9f85bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import android.content.ComponentName;
55
import android.content.Context;
66
import android.content.pm.PackageManager;
7+
import android.graphics.Color;
78

89
import java.util.ArrayList;
910
import java.util.List;
@@ -83,7 +84,8 @@ private int getNotificationIcon() {
8384
public static void setNotificationIcon(Notification.Builder builder) {
8485
try {
8586
if (notificationSmallIcon != 0) {
86-
builder.setSmallIcon(notificationSmallIcon);
87+
builder.setSmallIcon(notificationSmallIcon)
88+
.setColor(Color.WHITE);
8789
}
8890
} catch (Exception ex) {
8991
Logger.printException(() -> "setNotificationIcon failure", ex);

0 commit comments

Comments
 (0)