Browse Source

Fix the notif color for devices older than 8

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 6 years ago
parent
commit
d328332d70
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/src/main/java/com/nextcloud/talk/jobs/NotificationWorker.java

+ 3 - 0
app/src/main/java/com/nextcloud/talk/jobs/NotificationWorker.java

@@ -293,6 +293,9 @@ public class NotificationWorker extends Worker {
             }
 
             notificationBuilder.setGroup(Long.toString(crc32.getValue()));
+        } else {
+            // red color for the lights
+            notificationBuilder.setLights(0xFFFF0000, 200, 200);
         }
 
         notificationBuilder.setContentIntent(pendingIntent);