updates and additions
[webos-internals:modifications.git] / phone / phone-disable-various-phone-sounds.patch
1 diff --git a/usr/palm/applications/com.palm.app.phone/app/controllers/announcer-assistant.js b/usr/palm/applications/com.palm.app.phone/app/controllers/announcer-assistant.js
2 index d7df1b5..81e6f70 100644
3 --- a/usr/palm/applications/com.palm.app.phone/app/controllers/announcer-assistant.js
4 +++ b/usr/palm/applications/com.palm.app.phone/app/controllers/announcer-assistant.js
5 @@ -199,7 +199,7 @@ var AnnouncerAssistant = Class.create({
6                 this.appControl.showBanner(
7                         {
8                                 messageText: Messages.basebandDebugMessageTitle + ": " + message,
9 -                               soundClass: 'notifications'
10 +                               soundClass: ''
11                         }, 
12                         {}
13                 );
14 @@ -273,7 +273,7 @@ var AnnouncerAssistant = Class.create({
15                                 {
16                                         icon: "images/notification-small-missed.png",
17                                         messageText: Messages.callMissedBanner.interpolate({"contact":name}),
18 -                                       soundClass: 'notifications'
19 +                                       soundClass: ''
20                                 }, 
21                                 {
22                                         action: "missed"
23 @@ -300,7 +300,7 @@ var AnnouncerAssistant = Class.create({
24                                         function(stageController) {
25                                                 stageController.pushScene({"name": "missedcall"}, contact, timeStamp);
26                                         },
27 -                                       'popupalert');
28 +                                       'dashboard');
29                         }
30                 }
31         },
32 @@ -412,7 +412,7 @@ var AnnouncerAssistant = Class.create({
33                 this.appControl.showBanner(
34                         {
35                                 "messageText": message,
36 -                               "soundClass": 'notifications'
37 +                               "soundClass": ''
38                         },
39                         launchArgs
40                 );
41 @@ -684,8 +684,8 @@ var AnnouncerAssistant = Class.create({
42                         this.droppedTimeout = undefined;
43                 }.bind(this)
44                 
45 -               // stay up for 20 seconds
46 -               this.droppedTimeout = window.setTimeout(closeSelf, 20 * 1000);
47 +               // stay up for 10 seconds
48 +               this.droppedTimeout = window.setTimeout(closeSelf, 10 * 1000);
49                 
50                 // TODO FIXME MOCK
51                 if (MockTelephony.useMock === 1) {
52 @@ -711,7 +711,7 @@ var AnnouncerAssistant = Class.create({
53                                                 lightweight: true,
54                                                 name: stageName,
55                                                 height: DroppedcallAssistant.getPopupHeight(contact),
56 -                                               soundclass: "alerts"
57 +                                               soundclass: "none"
58                                         },
59                                         function(stagecontroller) {
60                                                 stagecontroller.pushScene("droppedcall", message, contact);
61 @@ -759,7 +759,7 @@ var AnnouncerAssistant = Class.create({
62                 this.appControl.showBanner(
63                         {
64                                 messageText: message,
65 -                               soundClass: 'notifications'
66 +                               soundClass: ''
67                         },
68                         {
69                                 prefill: contact.addr // todo need to pass a full contact to prefill
70 @@ -789,7 +789,7 @@ var AnnouncerAssistant = Class.create({
71                                         lightweight: true,
72                                         name: stageName,
73                                         height: height,
74 -                                       soundclass: "alerts"
75 +                                       soundclass: "none"
76                                 }, 
77                                 this.onAnnounceDialFailCreated.bind(this, message),
78                                 'popupalert');