Set blue color on notifications

This commit is contained in:
mvp76 2017-02-28 15:18:02 +01:00
parent 40a061ae73
commit d2cc4fcb05

View File

@ -331,6 +331,7 @@ class NotificationHelper {
.setContentTitle(getSingleItemTitleString(app, status)) .setContentTitle(getSingleItemTitleString(app, status))
.setContentText(getSingleItemContentString(app, status)) .setContentText(getSingleItemContentString(app, status))
.setSmallIcon(iconSmall) .setSmallIcon(iconSmall)
.setColor(ContextCompat.getColor(context, R.color.fdroid_blue))
.setLargeIcon(iconLarge) .setLargeIcon(iconLarge)
.setLocalOnly(true) .setLocalOnly(true)
.setVisibility(NotificationCompat.VISIBILITY_SECRET) .setVisibility(NotificationCompat.VISIBILITY_SECRET)
@ -406,6 +407,7 @@ class NotificationHelper {
new NotificationCompat.Builder(context) new NotificationCompat.Builder(context)
.setAutoCancel(!useStackedNotifications()) .setAutoCancel(!useStackedNotifications())
.setSmallIcon(R.drawable.ic_launcher) .setSmallIcon(R.drawable.ic_launcher)
.setColor(ContextCompat.getColor(context, R.color.fdroid_blue))
.setContentTitle(title) .setContentTitle(title)
.setContentText(text) .setContentText(text)
.setContentIntent(piAction) .setContentIntent(piAction)
@ -433,6 +435,7 @@ class NotificationHelper {
.setAutoCancel(true) .setAutoCancel(true)
.setLargeIcon(iconLarge) .setLargeIcon(iconLarge)
.setSmallIcon(R.drawable.ic_launcher) .setSmallIcon(R.drawable.ic_launcher)
.setColor(ContextCompat.getColor(context, R.color.fdroid_blue))
.setContentTitle(app.name) .setContentTitle(app.name)
.setContentText(context.getString(R.string.notification_content_single_installed)) .setContentText(context.getString(R.string.notification_content_single_installed))
.setLocalOnly(true) .setLocalOnly(true)
@ -478,6 +481,7 @@ class NotificationHelper {
new NotificationCompat.Builder(context) new NotificationCompat.Builder(context)
.setAutoCancel(!useStackedNotifications()) .setAutoCancel(!useStackedNotifications())
.setSmallIcon(R.drawable.ic_launcher) .setSmallIcon(R.drawable.ic_launcher)
.setColor(ContextCompat.getColor(context, R.color.fdroid_blue))
.setContentTitle(title) .setContentTitle(title)
.setContentText(text) .setContentText(text)
.setContentIntent(piAction) .setContentIntent(piAction)