Commit 0eef6a7e authored by Grigory Fedorov's avatar Grigory Fedorov

Red color returned to persistent notification.

parent 2483a404
...@@ -100,6 +100,7 @@ public class NotificationManager implements OnInitializedListener, OnAccountChan ...@@ -100,6 +100,7 @@ public class NotificationManager implements OnInitializedListener, OnAccountChan
private final AccountPainter accountPainter; private final AccountPainter accountPainter;
private NotificationCompat.Builder persistentNotificationBuilder; private NotificationCompat.Builder persistentNotificationBuilder;
private MessageNotificationCreator messageNotificationCreator; private MessageNotificationCreator messageNotificationCreator;
private int persistentNotificationColor;
private NotificationManager() { private NotificationManager() {
this.application = Application.getInstance(); this.application = Application.getInstance();
...@@ -145,6 +146,7 @@ public class NotificationManager implements OnInitializedListener, OnAccountChan ...@@ -145,6 +146,7 @@ public class NotificationManager implements OnInitializedListener, OnAccountChan
messageNotificationCreator = new MessageNotificationCreator(); messageNotificationCreator = new MessageNotificationCreator();
accountPainter = new AccountPainter(application); accountPainter = new AccountPainter(application);
persistentNotificationColor = application.getResources().getColor(R.color.red_500);
} }
public static NotificationManager getInstance() { public static NotificationManager getInstance() {
...@@ -359,7 +361,7 @@ public class NotificationManager implements OnInitializedListener, OnAccountChan ...@@ -359,7 +361,7 @@ public class NotificationManager implements OnInitializedListener, OnAccountChan
} }
if (connected > 0) { if (connected > 0) {
persistentNotificationBuilder.setColor(accountPainter.getDefaultMainColor()); persistentNotificationBuilder.setColor(persistentNotificationColor);
persistentNotificationBuilder.setSmallIcon(R.drawable.ic_stat_online); persistentNotificationBuilder.setSmallIcon(R.drawable.ic_stat_online);
} else { } else {
persistentNotificationBuilder.setColor(NotificationCompat.COLOR_DEFAULT); persistentNotificationBuilder.setColor(NotificationCompat.COLOR_DEFAULT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment