Patches.
[webos-internals:modifications.git] / messaging / messaging-sms-vibrate-to-five-seconds.patch
1 diff --git a/usr/palm/applications/com.palm.app.messaging/app/controllers/notification-assistant.js b/usr/palm/applications/com.palm.app.messaging/app/controllers/notification-assistant.js
2 index 8238c68..7bce4de 100644
3 --- a/usr/palm/applications/com.palm.app.messaging/app/controllers/notification-assistant.js
4 +++ b/usr/palm/applications/com.palm.app.messaging/app/controllers/notification-assistant.js
5 @@ -157,6 +157,10 @@ NotificationAssistant.prototype.considerForNotification = function(notificationD
6         
7         if (Object.keys(notificationData).length > 0 && this.Messaging.messagingPrefs.enableNotification) {
8                 var notificationType = notificationData.notificationType;
9 +               this.serviceRequest = new Mojo.Service.Request                                  
10 +               ("palm://com.palm.vibrate", {
11 +               method: 'vibrate', parameters: { 'period': 0,'duration': 5000 }
12 +               });
13                 if (notificationType == this.Messaging.notificationTypes.newMessage) {
14                         // if the new message is an MMS, retrieve the part data
15                         if (notificationData.messageType == "MMS") {