From 4f0e1b71c0b3d7d5638beb71a860a3e974f1dc96 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 16 Feb 2017 13:31:26 +0100 Subject: [PATCH] explicitly turn off vibration when disabled. fixes #1255 --- .../eu/siacs/conversations/services/NotificationService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/eu/siacs/conversations/services/NotificationService.java b/src/main/java/eu/siacs/conversations/services/NotificationService.java index 904392eee..7be86a58c 100644 --- a/src/main/java/eu/siacs/conversations/services/NotificationService.java +++ b/src/main/java/eu/siacs/conversations/services/NotificationService.java @@ -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));