aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-02-22 20:12:53 +0100
committerChristian Schneppe <christian@pix-art.de>2017-02-22 20:49:04 +0100
commit3d306a4acdefa46c83717e27214d39ab7e9b5b22 (patch)
treee86e1d5f421085abd47f6da343ed207a3b5e257d /src/main/java/de/pixart/messenger
parentf70f713fad0c8b82cf18bcf612bddb78758b588b (diff)
explicitly turn off vibration when disabled
Diffstat (limited to 'src/main/java/de/pixart/messenger')
-rw-r--r--src/main/java/de/pixart/messenger/services/NotificationService.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/services/NotificationService.java b/src/main/java/de/pixart/messenger/services/NotificationService.java
index a1ababd9c..13a525bfb 100644
--- a/src/main/java/de/pixart/messenger/services/NotificationService.java
+++ b/src/main/java/de/pixart/messenger/services/NotificationService.java
@@ -242,6 +242,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));