mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-22 22:45:18 +01:00
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:
parent
419969f721
commit
25eae355cd
1 changed files with 2 additions and 0 deletions
|
@ -4517,6 +4517,8 @@ public class MessagesController implements NotificationCenter.NotificationCenter
|
|||
|
||||
if (needVibrate) {
|
||||
mBuilder.setVibrate(new long[]{0, 100, 0, 100});
|
||||
} else {
|
||||
mBuilder.setVibrate(new long[]{0});
|
||||
}
|
||||
if (choosenSoundPath != null && !choosenSoundPath.equals("NoSound")) {
|
||||
if (choosenSoundPath.equals(defaultPath)) {
|
||||
|
|
Loading…
Reference in a new issue