Renamed more-icons-per-row-5x4-flare576
[webos-internals:adamrmcd-modifications.git] / phone / enable-dialpad-vibration.patch
1 This will turn off sound and enable vibration of the dialpad.
2
3 Index: /usr/palm/applications/com.palm.app.phone/app/controllers/dialpad-assistant.js
4 --- .orig/usr/palm/applications/com.palm.app.phone/app/controllers/dialpad-assistant.js
5 +++ /usr/palm/applications/com.palm.app.phone/app/controllers/dialpad-assistant.js
6 @@ -634,7 +634,7 @@ var DialpadAssistant = Class.create({
7         numberClick: function(event, key){
8                 
9                 if (key) {
10 -                       TelephonyCommands.sendDTMF(key, true);
11 +                       this.controller.serviceRequest("palm://com.palm.vibrate", {method: 'vibrate', parameters: { 'period': 0,'duration': 100 }});
12                         this.formatAndUpdateDialString(key,event);
13                         if (this.dialString.length == 1 && this.speedDialString.length == 0) {
14                                 QDLogger.log( "DialpadAssistant#numberClick", "about to lookup speed dial");
15 @@ -929,7 +929,7 @@ var DialpadAssistant = Class.create({
16                 if (this.isValidToneKey(this.pressedKey)
17                         && this.pressedKey !== Mojo.Char.backspace
18                         && (!this.appAssistant.lookupOnKeyPress || this.keyMapOpt.get(evt.keyIdentifier))) {
19 -                       TelephonyCommands.sendDTMF(this.pressedKey, true);
20 +                       this.controller.serviceRequest("palm://com.palm.vibrate", {method: 'vibrate', parameters: { 'period': 0,'duration': 100 }});
21                 }
22                 
23                 Event.stop(evt);