28 Updates for Patches
[webos-internals:imagineer1981s-modifications.git] / app-launcher / app-launcher-hide-quick-launch-bar.patch
1 diff --git a/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js b/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js
2 index c36764f..4a6edc2 100644
3 --- a/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js
4 +++ b/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js
5 @@ -8,7 +8,7 @@ var LauncherAssistant = Class.create({
6          * hardcoding the quick launch height until we can find a better way. 
7          * This value = ql graphic height - the offset from the top (small fade area)
8          */
9 -       kQuickLaunchHeight: 67,
10 +       kQuickLaunchHeight: 0,
11         
12         kPageIndicatorSpacing: 6,       /* spacing between each page indicator */
13         kPageMargin: 10, /* 10 pixel margin on each side of a page */
14 diff --git a/usr/lib/luna/system/luna-applauncher/app/models/SystemManagerService.js b/usr/lib/luna/system/luna-applauncher/app/models/SystemManagerService.js
15 index e9f6856..2e42778 100644
16 --- a/usr/lib/luna/system/luna-applauncher/app/models/SystemManagerService.js
17 +++ b/usr/lib/luna/system/luna-applauncher/app/models/SystemManagerService.js
18 @@ -7,7 +7,7 @@ function SystemManagerService() {
19  SystemManagerService.showQuickLaunch = function(show) {
20         var request = new Mojo.Service.Request(SystemManagerService.SysMgrId, {
21                 method: 'systemUi',
22 -               parameters: {'quicklaunch':show}
23 +               parameters: {'quicklaunch':false}
24         });
25         request = null;
26  }
27 diff --git a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
28 index 6cb3941..bfd4186 100644
29 --- a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
30 +++ b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
31 @@ -20,6 +20,11 @@ var BarAssistant = Class.create({
32                 this.wifiState = 'Off'; 
33                 this.wifiRadio = false; 
34                 
35 +               this.controller.serviceRequest('palm://com.palm.systemmanager', {
36 +                       method: 'systemUi',
37 +                       parameters: {"quicklaunch": false}
38 +               });
39 +               
40                 $('rssi').className = 'nobars';
41                 $('datanet').className = 'off';
42                 $('wifi').className = 'off';
43 @@ -276,12 +281,23 @@ updateAppMenuTitle: function(payload) {
44                         }
45                         $('appname').innerHTML = $L("Preferences");
46                 }
47 +               else if (payload.id == "com.palm.launcher"){
48 +                       this.controller.serviceRequest('palm://com.palm.systemmanager', {
49 +                               method: 'systemUi',
50 +                               parameters: {"quicklaunch": false}
51 +                       });
52 +                       $('appname').innerHTML = payload.appmenu || payload.title;
53 +               }
54                 else 
55                         $('appname').innerHTML = payload.appmenu || payload.title;
56                 $('appname').show();
57                 this.foregroundAppID = payload.id;
58         }
59         else{
60 +               this.controller.serviceRequest('palm://com.palm.systemmanager', {
61 +                       method: 'systemUi',
62 +                       parameters: {"quicklaunch": false}
63 +               });
64                 $('appname').hide();
65                 $('carrier').show();
66                 this.foregroundAppID=null;