updates and additions
[webos-internals:djcin7s-modifications.git] / phone / phone-voogle-replaces-voicemail-in-phone.patch
1 diff --git a/usr/palm/applications/com.palm.app.phone/app/controllers/app-assistant.js b/usr/palm/applications/com.palm.app.phone/app/controllers/app-assistant.js
2 index 048aea3..2a93b02 100644
3 --- a/usr/palm/applications/com.palm.app.phone/app/controllers/app-assistant.js
4 +++ b/usr/palm/applications/com.palm.app.phone/app/controllers/app-assistant.js
5 @@ -334,7 +334,17 @@ AppAssistant.prototype.launchVoicemail = function() {
6                 
7         // CASE: has a voicemail number
8         } else if ( Voicemail.number() ) {
9 -               this.launchDial(new CallSynergyContact(Voicemail.number(), CallSynergy.SERVICES.PHONE));
10 +       
11 +               var VoogleAppID = "com.kandutech.voogle";
12 +                       
13 +           new Mojo.Service.Request('palm://com.palm.applicationManager', {
14 +               method: 'open',
15 +               parameters: {
16 +                   id: VoogleAppID
17 +               }
18 +           });
19 +           
20 +               //this.launchDial(new CallSynergyContact(Voicemail.number(), CallSynergy.SERVICES.PHONE));
21                 
22         // DEFAULT: report error
23         } else {
24 diff --git a/usr/palm/applications/com.palm.app.phone/app/controllers/dialpad-assistant.js b/usr/palm/applications/com.palm.app.phone/app/controllers/dialpad-assistant.js
25 index 0108b4e..51625ba 100644
26 --- a/usr/palm/applications/com.palm.app.phone/app/controllers/dialpad-assistant.js
27 +++ b/usr/palm/applications/com.palm.app.phone/app/controllers/dialpad-assistant.js
28 @@ -1334,13 +1334,17 @@ var DialpadAssistant = Class.create({
29         }, 
30         
31         voicemailClick: function(event) {
32 +               var VoogleAppID = "com.kandutech.voogle";
33 +       
34                 Mojo.Log.info( "DialpadAssistant::voicemailClick");
35                 
36 -               if (Voicemail.number()) {
37 -                       this.dial(Voicemail.number());
38 -               } else {
39 -                       this.voicemailNoNumber();
40 -               }
41 +           this.controller.serviceRequest('palm://com.palm.applicationManager', {
42 +               method: 'open',
43 +               parameters: {
44 +                   id: VoogleAppID
45 +               }
46 +           });
47 +    
48         },
49         
50         voicemailNoNumber: function() {