Set vibrate to empty vibrate, if disabled in Telegram settings.

Overrides default notification vibration settings (which are
disabled in normal mode, and enabled in vibrate mode)
This commit is contained in:
Victor Heng 2014-05-13 17:12:28 +08:00
parent 419969f721
commit 25eae355cd

View file

@ -4517,6 +4517,8 @@ public class MessagesController implements NotificationCenter.NotificationCenter
if (needVibrate) { if (needVibrate) {
mBuilder.setVibrate(new long[]{0, 100, 0, 100}); mBuilder.setVibrate(new long[]{0, 100, 0, 100});
} else {
mBuilder.setVibrate(new long[]{0});
} }
if (choosenSoundPath != null && !choosenSoundPath.equals("NoSound")) { if (choosenSoundPath != null && !choosenSoundPath.equals("NoSound")) {
if (choosenSoundPath.equals(defaultPath)) { if (choosenSoundPath.equals(defaultPath)) {