[1216] Use system default for vibration pattern (#1247)

This commit is contained in:
Alexander Rashed
2017-12-04 16:11:32 +01:00
committed by enahum
parent 849c8cc4af
commit bbf4557b54

View File

@@ -265,8 +265,8 @@ public class CustomPushNotification extends PushNotification {
boolean vibrate = notificationPreferences.getShouldVibrate();
if (vibrate) {
// Each element then alternates between delay, vibrate, sleep, vibrate, sleep
notification.setVibrate(new long[] {1000, 1000, 500, 1000, 500});
// use the system default for vibration
notification.setDefaults(Notification.DEFAULT_VIBRATE);
}
boolean blink = notificationPreferences.getShouldBlink();