28 Updates for Patches
[webos-internals:modifications.git] / phone / phone-open-to-call-log.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 3ba467f..108c335 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 @@ -193,20 +193,14 @@ AppAssistant.prototype.handleLaunch = function(params){
6                         if(PalmSystem.isMinimal)
7                                 return 
8                         else
9 -                               this.showDialpad();
10 +                               this.showCallLog(); // start with call log instead of dialpad
11                 } 
12      } else {
13                 
14                 if (!(this.telephonyEventListener.isPendingOrActive())) {
15                         if (this.initialLaunch === false) {
16                                 QDLogger.log( "handleLaunch", "no args, no calls: focusing stage");
17 -                               var appControl = Mojo.Controller.getAppController();
18 -                       var stageController = appControl.getStageController(this.stageName);
19 -                                       
20 -                               if (!stageController) {
21 -                                       this.showDialpad();
22 -                               }
23 -                               
24 +                               this.showCallLog(); // just show call log here
25                                 this.focusStage();
26                         } else {
27                                 QDLogger.log( "handleLaunch", "initial launch, so doing nothing");
28 @@ -483,7 +477,7 @@ AppAssistant.prototype.showCallLog = function(contactId, number, type, keepHidde
29                 this.sceneStack.push(sceneName);
30                 sc.pushScene({
31                         "name": sceneName,
32 -                       transition: Mojo.Transition.crossFade
33 +                       transition: Mojo.Transition.none // we don't need the transition
34                 }, type);
35         }.bind(this);
36     
37 @@ -502,6 +496,9 @@ AppAssistant.prototype.showCallLog = function(contactId, number, type, keepHidde
38                         if(type == 'missed')
39                                 stageController.delegateToSceneAssistant("updateMissedCalls")
40                         stageController.activate();
41 +                               pushLogScene(stageController); // get back the the all calls list
42 +                               return;
43 +                       stageController.activate();
44                 }
45         }
46  };
47 @@ -718,7 +715,7 @@ AppAssistant.prototype.closePhoneStage = function() {
48  AppAssistant.prototype.hidePhoneStage = function(win) {
49         QDLogger.log("AppAssistant#hidePhoneStage");
50         win.PalmSystem.hide();
51 -       this.showDialpad(null, true /* keep hidden */);
52 +       this.showCallLog("", "", "", true /* keep hidden */); // just in case; show call log here
53         this.hidden = true;
54  }
55  
56 @@ -752,14 +749,7 @@ AppAssistant.prototype.popActiveCall = function(params) {
57         if (stageController !== undefined) {
58                 this.sceneStack = [];
59                 stageController.popScenesTo();
60 -               if (this.backToCalllog) {
61 -                       if(this.calllogType == "missed")
62 -                               this.showCallLog("", "", "missed", true);
63 -                       else
64 -                               this.showCallLog("", "", "", true);
65 -               }
66 -               else 
67 -                       this.showDialpad(null, true);
68 +               this.showCallLog("", "", "", true); // return to call log
69         } else {
70                 QDLogger.log( "popActiveCall", "undefined stage");
71         }