mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-04-22 16:01:37 -04:00
Set blue color on notifications
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user