Commit a4ab5bc55f95e17e1448ff2d2d3a4d5393561183

  • avatar
  • egaudet
  • Thu Oct 01 08:19:12 CEST 2009
add patch for dBsooner
  
1This will turn off sound and enable vibration of the dialpad.
2
3Index: /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);