notifications support vibration now
This commit is contained in:
parent
36728d5c0f
commit
33f8747b87
|
@ -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"
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue