diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-02-22 20:12:53 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-02-22 20:49:04 +0100 |
commit | 3d306a4acdefa46c83717e27214d39ab7e9b5b22 (patch) | |
tree | e86e1d5f421085abd47f6da343ed207a3b5e257d /src | |
parent | f70f713fad0c8b82cf18bcf612bddb78758b588b (diff) |
explicitly turn off vibration when disabled
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/NotificationService.java | 2 |
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)); |