explicitly turn off vibration when disabled. fixes #1255
This commit is contained in:
parent
caa16a8517
commit
4f0e1b71c0
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue