Commit ec790d5e authored by Grigory Fedorov's avatar Grigory Fedorov

Persistent notification made red.

parent c5fd9d70
......@@ -73,6 +73,9 @@ public class NotificationManager implements OnInitializedListener, OnAccountChan
private static final long VIBRATION_DURATION = 500;
private static final int MAX_NOTIFICATION_TEXT = 80;
public static final int COLOR_MATERIAL_RED_500 = 0xF44336;
private final long startTime;
private final Application application;
private final android.app.NotificationManager notificationManager;
......@@ -384,6 +387,8 @@ public class NotificationManager implements OnInitializedListener, OnAccountChan
persistentNotificationBuilder.setStyle(null);
persistentNotificationBuilder.setLargeIcon(null);
persistentNotificationBuilder.setColor(COLOR_MATERIAL_RED_500);
if (SettingsManager.eventsPersistent()) {
// Ongoing icons are in the left side, so always use it.
persistentNotificationBuilder.setWhen(startTime);
......
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