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
1 changed files with 2 additions and 0 deletions

View File

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