From abd40ea56c70cc1960200f0ec14b9f7839f1aa4b Mon Sep 17 00:00:00 2001 From: schwma <37244550+schwma@users.noreply.github.com> Date: Sun, 11 Nov 2018 16:52:21 +0100 Subject: [PATCH] Enable vibration by default for high and default importance notification channels --- app/src/main/java/com/github/gotify/NotificationSupport.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/github/gotify/NotificationSupport.java b/app/src/main/java/com/github/gotify/NotificationSupport.java index 6d0e2a1..fdd34df 100644 --- a/app/src/main/java/com/github/gotify/NotificationSupport.java +++ b/app/src/main/java/com/github/gotify/NotificationSupport.java @@ -56,6 +56,7 @@ public class NotificationSupport { NotificationManager.IMPORTANCE_DEFAULT); messagesImportanceDefault.enableLights(true); messagesImportanceDefault.setLightColor(Color.CYAN); + messagesImportanceDefault.enableVibration(true); NotificationChannel messagesImportanceHigh = new NotificationChannel( @@ -64,6 +65,7 @@ public class NotificationSupport { NotificationManager.IMPORTANCE_HIGH); messagesImportanceHigh.enableLights(true); messagesImportanceHigh.setLightColor(Color.CYAN); + messagesImportanceHigh.enableVibration(true); notificationManager.createNotificationChannel(foreground); notificationManager.createNotificationChannel(messagesImportanceMin);