aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2014-03-12 01:49:11 +0100
committerDaniel Gultsch <daniel@gultsch.de>2014-03-12 01:49:11 +0100
commit33f8747b87f790a49ee6f3576132048e8caf806a (patch)
tree8cff2993849e65805de4aa50eddc48237a545db5
parent36728d5c0f58488479c2f9eaa4511621774b0dd6 (diff)
notifications support vibration now
Diffstat (limited to '')
-rw-r--r--AndroidManifest.xml1
-rw-r--r--src/eu/siacs/conversations/utils/UIHelper.java3
2 files changed, 4 insertions, 0 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 7855986d..25e79a77 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -14,6 +14,7 @@
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
+ <uses-permission android:name="android.permission.VIBRATE"/>
<application
android:allowBackup="true"
diff --git a/src/eu/siacs/conversations/utils/UIHelper.java b/src/eu/siacs/conversations/utils/UIHelper.java
index faed21de..5d9f2420 100644
--- a/src/eu/siacs/conversations/utils/UIHelper.java
+++ b/src/eu/siacs/conversations/utils/UIHelper.java
@@ -200,6 +200,9 @@ public class UIHelper {
if (unread.size() != 0) {
mBuilder.setSmallIcon(R.drawable.notification);
if (notify) {
+ int dat = 110;
+ long[] pattern = {0,3*dat,dat,dat,dat,3*dat,dat,dat};
+ mBuilder.setVibrate(pattern);
mBuilder.setLights(0xffffffff, 2000, 4000);
if (ringtone != null) {
mBuilder.setSound(Uri.parse(ringtone));