From 0bca6c700f451dd7156c86129abffd480f841405 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 f162d4b67b..817e735e2b 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 @@ private Notification buildNotification() { 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);