diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-10-24 20:45:17 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-10-24 20:45:17 +0200 |
commit | 549548de54e903b59a6601b0f0a015403e8f7708 (patch) | |
tree | c38f269c0936039ae445b0a8f79ba8f3d8e3dff9 /src/main/java/de | |
parent | ddab7292e5496e86ae033a3a36c86bf0b782b8f6 (diff) |
play short vibrate while your are inside the chat
Diffstat (limited to 'src/main/java/de')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/NotificationService.java | 1 |
1 files changed, 1 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 a2d6f541a..c60e652bb 100644 --- a/src/main/java/de/pixart/messenger/services/NotificationService.java +++ b/src/main/java/de/pixart/messenger/services/NotificationService.java @@ -319,6 +319,7 @@ public class NotificationService { } final boolean isScreenOn = mXmppConnectionService.isInteractive(); if (this.mIsInForeground && isScreenOn && this.mOpenConversation == message.getConversation()) { + mXmppConnectionService.vibrate(); Log.d(Config.LOGTAG, message.getConversation().getAccount().getJid().asBareJid() + ": suppressing notification because conversation is open"); return; } |