Set blue color on notifications

This commit is contained in:
mvp76 committed 2017-02-28 20:56:35 +01:00
1 parent 40a061ae73
commit d2cc4fcb05
1 file changed
+4
@@ -331,6 +331,7 @@ class NotificationHelper {
.setContentTitle(getSingleItemTitleString(app, status))
.setContentText(getSingleItemContentString(app, status))
.setSmallIcon(iconSmall)
.setColor(ContextCompat.getColor(context, R.color.fdroid_blue))
.setLargeIcon(iconLarge)
.setLocalOnly(true)
.setVisibility(NotificationCompat.VISIBILITY_SECRET)
@@ -406,6 +407,7 @@ class NotificationHelper {
new NotificationCompat.Builder(context)
.setAutoCancel(!useStackedNotifications())
.setSmallIcon(R.drawable.ic_launcher)
.setColor(ContextCompat.getColor(context, R.color.fdroid_blue))
.setContentTitle(title)
.setContentText(text)
.setContentIntent(piAction)
@@ -433,6 +435,7 @@ class NotificationHelper {
.setAutoCancel(true)
.setLargeIcon(iconLarge)
.setSmallIcon(R.drawable.ic_launcher)
.setColor(ContextCompat.getColor(context, R.color.fdroid_blue))
.setContentTitle(app.name)
.setContentText(context.getString(R.string.notification_content_single_installed))
.setLocalOnly(true)
@@ -478,6 +481,7 @@ class NotificationHelper {
new NotificationCompat.Builder(context)
.setAutoCancel(!useStackedNotifications())
.setSmallIcon(R.drawable.ic_launcher)
.setColor(ContextCompat.getColor(context, R.color.fdroid_blue))
.setContentTitle(title)
.setContentText(text)
.setContentIntent(piAction)