From fef0c6686814d7e0a246384e2a82b4fa2f060246 Mon Sep 17 00:00:00 2001 From: Nishith Khanna Date: Fri, 17 May 2019 23:02:19 +0530 Subject: [PATCH] Tweak notification icon color to make it work with dark notifcations As the notification icon and text is set to black, ROMs like Samsung OneUI and themes that change notifications to have a dark background will have visibility issues with Termux notifications. This commit sets a neutral color which will be visible on both white and dark backgrounds. --- app/src/main/java/com/termux/app/TermuxService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/termux/app/TermuxService.java b/app/src/main/java/com/termux/app/TermuxService.java index f162d4b6..817e735e 100644 --- a/app/src/main/java/com/termux/app/TermuxService.java +++ b/app/src/main/java/com/termux/app/TermuxService.java @@ -214,7 +214,7 @@ public final class TermuxService extends Service implements SessionChangedCallba builder.setShowWhen(false); // Background color for small notification icon: - builder.setColor(0xFF000000); + builder.setColor(0xFF607D8B); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { builder.setChannelId(NOTIFICATION_CHANNEL_ID);