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.
This commit is contained in:
Nishith Khanna
2019-05-17 23:02:19 +05:30
committed by Fredrik Fornwall
parent 7a5da83ce2
commit fef0c66868

View File

@@ -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);