[1216] Use system default for vibration pattern (#1247)
This commit is contained in:
parent
849c8cc4af
commit
bbf4557b54
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue