Selaa lähdekoodia

Fix the notif color for devices older than 8

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 6 vuotta sitten
vanhempi
commit
d328332d70

+ 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()));
             notificationBuilder.setGroup(Long.toString(crc32.getValue()));
+        } else {
+            // red color for the lights
+            notificationBuilder.setLights(0xFFFF0000, 200, 200);
         }
         }
 
 
         notificationBuilder.setContentIntent(pendingIntent);
         notificationBuilder.setContentIntent(pendingIntent);