14 New, 1 Updated patches
[webos-internals:shivaramv-modifications.git] / app-launcher / app-launcher-hide-quick-launch-bar-in-launcher-only.patch
1 diff --git a/usr/lib/luna/system/luna-applauncher/app/controllers/global-search-assistant.js b/usr/lib/luna/system/luna-applauncher/app/controllers/global-search-assistant.js
2 index 6d1bc78..54b38d3 100644
3 --- a/usr/lib/luna/system/luna-applauncher/app/controllers/global-search-assistant.js
4 +++ b/usr/lib/luna/system/luna-applauncher/app/controllers/global-search-assistant.js
5 @@ -248,7 +248,7 @@ GlobalSearchAssistant = Class.create({
6                         this.launcherHiddenAtFirstKeydown = false;
7                 }
8                 else {
9 -                       SystemManagerService.showQuickLaunch(true);
10 +                       SystemManagerService.showQuickLaunch(false);
11                 }
12                 
13                 this.galInit();
14 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
15 index c36764f..e6b2547 100644
16 --- a/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js
17 +++ b/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js
18 @@ -8,7 +8,7 @@ var LauncherAssistant = Class.create({
19          * hardcoding the quick launch height until we can find a better way. 
20          * This value = ql graphic height - the offset from the top (small fade area)
21          */
22 -       kQuickLaunchHeight: 67,
23 +       kQuickLaunchHeight: 0,
24         
25         kPageIndicatorSpacing: 6,       /* spacing between each page indicator */
26         kPageMargin: 10, /* 10 pixel margin on each side of a page */
27 @@ -585,7 +585,7 @@ var LauncherAssistant = Class.create({
28                                                                                                         this.controller,
29                                                                                                         function() {
30                                                                                                                 this.appDialog = undefined;
31 -                                                                                                               SystemManagerService.showQuickLaunch(true);
32 +                                                                                                               SystemManagerService.showQuickLaunch(false);
33                                                                                                                 this.globalSearchAssistant.enable(true);
34                                                                                                         }.bind(this));
35  
36 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
37 index 6cb3941..f7cb859 100644
38 --- a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
39 +++ b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
40 @@ -276,6 +276,13 @@ updateAppMenuTitle: function(payload) {
41                         }
42                         $('appname').innerHTML = $L("Preferences");
43                 }
44 +               else if (payload.id == "com.palm.launcher"){
45 +                       this.controller.serviceRequest('palm://com.palm.systemmanager', {
46 +                               method: 'systemUi',
47 +                               parameters: {"quicklaunch": false}
48 +                       });
49 +                       $('appname').innerHTML = payload.appmenu || payload.title;
50 +               }
51                 else 
52                         $('appname').innerHTML = payload.appmenu || payload.title;
53                 $('appname').show();