Renamed more-icons-per-row-5x4-flare576
[webos-internals:adamrmcd-modifications.git] / phone / call-history-during-call.patch
1 This patch adds an option to the phone's dropdown menu during a call to view the call history. -skp (www.teckaddict.com)
2 Index: /usr/palm/applications/com.palm.app.phone/app/controllers/activecall-assistant.js
3 ===================================================================
4 --- .orig/usr/palm/applications/com.palm.app.phone/app/controllers/activecall-assistant.js
5 +++ /usr/palm/applications/com.palm.app.phone/app/controllers/activecall-assistant.js
6 @@ -132,6 +132,10 @@ var ActivecallAssistant = Class.create({
7                 var appMenuModel = {
8                         visible: true,
9              items: [{
10 +                label: $L('Call History'),
11 +                command: 'callhistory'
12 +                 },
13 +                 {
14                  label: $L('Sounds & Ringtones'),
15                  command: 'ringtones'
16              }]
17 @@ -143,6 +147,9 @@ var ActivecallAssistant = Class.create({
18         handleCommand: function(event) {
19                 if (event.type == Mojo.Event.command) {
20                         switch (event.command) {
21 +                               case 'callhistory':
22 +                                       this.appAssistant.showCallLog();
23 +                                       break;
24                                 case 'ringtones':
25                                         MenuController.showRingtones(this.controller.stageController);
26                                         break;
27 Index: /usr/palm/applications/com.palm.app.phone/app/controllers/calllog-assistant.js
28 ===================================================================
29 --- .orig/usr/palm/applications/com.palm.app.phone/app/controllers/calllog-assistant.js
30 +++ /usr/palm/applications/com.palm.app.phone/app/controllers/calllog-assistant.js
31 @@ -169,7 +169,12 @@ var CalllogAssistant = Class.create({
32                         // manually deal with back; always return to dialpad even if there's
33                         // no dialpad scene yet created
34                         QDLogger.log( "CalllogAssistant#handleCommand", "back!");
35 -                       this.appAssistant.showDialpad();
36 +                       if (this.telListener.callExists() == true) {
37 +                               this.appAssistant.showActiveCall();
38 +                       }
39 +                       else {
40 +                               this.appAssistant.showDialpad();
41 +                       }
42                         event.stopPropagation();
43                         Event.stop(event);
44                 } else if (event.type == Mojo.Event.command) {
45 @@ -210,7 +215,12 @@ var CalllogAssistant = Class.create({
46         },
47      
48      switchToDialpad: function(){
49 -       this.appAssistant.showDialpad();
50 +       if (this.telListener.callExists() == true) {
51 +               this.appAssistant.showActiveCall();
52 +       }
53 +       else {
54 +               this.appAssistant.showDialpad();
55 +       }
56      },
57  
58         /* TODO FIXME