explicitly turn off vibration when disabled. fixes #1255

This commit is contained in:
Daniel Gultsch 2017-02-16 13:31:26 +01:00
parent caa16a8517
commit 4f0e1b71c0

View File

@ -230,6 +230,8 @@ public class NotificationService {
final int dat = 70; final int dat = 70;
final long[] pattern = {0, 3 * dat, dat, dat}; final long[] pattern = {0, 3 * dat, dat, dat};
mBuilder.setVibrate(pattern); mBuilder.setVibrate(pattern);
} else {
mBuilder.setVibrate(new long[]{0});
} }
if (ringtone != null) { if (ringtone != null) {
mBuilder.setSound(Uri.parse(ringtone)); mBuilder.setSound(Uri.parse(ringtone));