Enable vibration by default for high and default importance notification channels

This commit is contained in:
schwma
2018-11-11 16:52:21 +01:00
parent 63af9d458d
commit abd40ea56c

View File

@@ -56,6 +56,7 @@ public class NotificationSupport {
NotificationManager.IMPORTANCE_DEFAULT); NotificationManager.IMPORTANCE_DEFAULT);
messagesImportanceDefault.enableLights(true); messagesImportanceDefault.enableLights(true);
messagesImportanceDefault.setLightColor(Color.CYAN); messagesImportanceDefault.setLightColor(Color.CYAN);
messagesImportanceDefault.enableVibration(true);
NotificationChannel messagesImportanceHigh = NotificationChannel messagesImportanceHigh =
new NotificationChannel( new NotificationChannel(
@@ -64,6 +65,7 @@ public class NotificationSupport {
NotificationManager.IMPORTANCE_HIGH); NotificationManager.IMPORTANCE_HIGH);
messagesImportanceHigh.enableLights(true); messagesImportanceHigh.enableLights(true);
messagesImportanceHigh.setLightColor(Color.CYAN); messagesImportanceHigh.setLightColor(Color.CYAN);
messagesImportanceHigh.enableVibration(true);
notificationManager.createNotificationChannel(foreground); notificationManager.createNotificationChannel(foreground);
notificationManager.createNotificationChannel(messagesImportanceMin); notificationManager.createNotificationChannel(messagesImportanceMin);