소스 검색

Fix the notif color for devices older than 8

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 6 년 전
부모
커밋
d328332d70
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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);