From 78b802b8e931770b0d33f3710dcd2e572b6b2a3a Mon Sep 17 00:00:00 2001
From: massimiliano <massimiliano@disroot.org>
Date: Thu, 20 Dec 2018 21:02:16 +0100
Subject: [PATCH] Light + vibration added for notification

---
 app/src/main/java/org/disroot/disrootapp/ui/MainActivity.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app/src/main/java/org/disroot/disrootapp/ui/MainActivity.java b/app/src/main/java/org/disroot/disrootapp/ui/MainActivity.java
index 6a60190..c350b06 100644
--- a/app/src/main/java/org/disroot/disrootapp/ui/MainActivity.java
+++ b/app/src/main/java/org/disroot/disrootapp/ui/MainActivity.java
@@ -1942,7 +1942,9 @@ public class MainActivity extends AppCompatActivity implements View.OnLongClickL
                         .setContentInfo(message)//get text message from json :-)
                         .setContentIntent(launchStateMessages);
         Uri alarmSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
-        mBuilder.setSound(alarmSound);
+        mBuilder.setSound(alarmSound)
+                .setVibrate(new long[]{50,500,100,300,50,300})
+                .setLights(Color.MAGENTA, 3000, 3000);
         NotificationManager mNotificationManager =
                 (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
         mNotificationManager.notify(001, mBuilder.build());
-- 
GitLab