3 Ported, 2 updated.
[webos-internals:imagineer1981s-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 aa92cd0..c96be23 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 @@ -188,20 +188,14 @@ AppAssistant.prototype.handleLaunch = function(params){
6                         if(PalmSystem.isMinimal)
7                                 return 
8                         else
9 -                               this.showDialpad();
10 +                               this.showCallLog(); // start up to 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 @@ -499,7 +493,7 @@ AppAssistant.prototype.showCallLog = function(type, keepHidden){
29                 
30                 sc.pushScene({
31                         name: sceneName,
32 -                       transition: Mojo.Transition.crossFade,
33 +                       transition: Mojo.Transition.none, // we don't need the transition
34                         templateModel: {
35                                 voicemailCount: voicemailCount,
36                                 voicemailCountDisplayClass: voicemailCountDisplayClass
37 @@ -522,6 +516,8 @@ AppAssistant.prototype.showCallLog = function(type, keepHidden){
38                         if ( type == "missed" ) {
39                                 stageController.delegateToSceneAssistant("onMissedCallsTap", true);
40                         }
41 +                       stageController.delegateToSceneAssistant("closeDrawer"); // need this so drawers don't get stuck
42 +                       pushLogScene(stageController); // make sure we go to all calls list
43                 }
44         }
45  };
46 @@ -773,14 +769,7 @@ AppAssistant.prototype.popActiveCall = function(params) {
47         if (stageController !== undefined) {
48                 this.sceneStack = [];
49                 stageController.popScenesTo();
50 -               if (this.backToCalllog) {
51 -                       if(this.calllogType == "missed")
52 -                               this.showCallLog("missed", true);
53 -                       else
54 -                               this.showCallLog("", true);
55 -               }
56 -               else 
57 -                       this.showDialpad(null, true);
58 +               this.showCallLog("", true); // return to call log when call ended
59         } else {
60                 QDLogger.log( "popActiveCall", "undefined stage");
61         }