updates and additions
[webos-internals:modifications.git] / phone / phone-hide-voicemail-button.patch
1 diff --git a/usr/palm/applications/com.palm.app.phone/app/controllers/stageAssistants/phoneAppStage-assistant.js b/usr/palm/applications/com.palm.app.phone/app/controllers/stageAssistants/phoneAppStage-assistant.js
2 index ad8304a..3e041fe 100644
3 --- a/usr/palm/applications/com.palm.app.phone/app/controllers/stageAssistants/phoneAppStage-assistant.js
4 +++ b/usr/palm/applications/com.palm.app.phone/app/controllers/stageAssistants/phoneAppStage-assistant.js
5 @@ -5,15 +5,14 @@ PhoneAppStageAssistant = function() {
6         // tabs at bottom of main phoneapp scenes
7         this.tabBarItemsVoicemailModel = { template: 'template/command-menu-voicemail-item', command: 'voicemail', width: 80, vmCount: "", vmClass: "hidden"};
8         this.tabBarModel = {
9 -               items: [{
10 +               items: [{}, {
11                         toggleCmd: null,
12                         items: [
13 -                               this.tabBarItemsVoicemailModel,
14 -                               { icon: 'favorites', command: 'favorites', width: 80},
15 -                               { icon: 'call-log', command: 'calllog', width: 80},
16 -                               { icon: 'dtmfpad', command: 'dialpad_card', width: 80}
17 +                               { icon: 'favorites', command: 'favorites', width: 100},
18 +                               { icon: 'call-log', command: 'calllog', width: 100},
19 +                               { icon: 'dtmfpad', command: 'dialpad_card', width: 100}
20                         ]
21 -               }]
22 +               }, {}]
23         };
24         
25         // tracks which state the call log tab bar button should point to
26 @@ -119,7 +118,7 @@ PhoneAppStageAssistant.prototype.updateToolbarState = function() {
27         }
28         
29         if ( selectedTab ) {
30 -               this.tabBarModel.items[0].toggleCmd = selectedTab;
31 +               this.tabBarModel.items[1].toggleCmd = selectedTab;
32                 
33                 // notify all assistants that the model changed
34                 this.tabBarSubscribers.each(function(controller) {