phone-disable-various-phone-sounds for 1.3.5
[webos-internals:modifications.git] / phone / phone-disable-various-phone-sounds.patch
1 Name: Disable Various Phone Sounds
2 Version: 1.3.5-1
3 Description: disable end call, dropped call, missed call, ignored call sounds. The missed call will appear as a notifification. Updated to disable dropped call sound.
4
5 --- .orig/usr/palm/applications/com.palm.app.phone/app/controllers/announcer-assistant.js
6 +++ /usr/palm/applications/com.palm.app.phone/app/controllers/announcer-assistant.js
7                                          
8
9 @@ -322,7 +323,7 @@
10                                         "height": height, 
11                                 }, 
12                                 this.onAnnounceMissedCreated.bind(this, name, number, picture, contact, Messages.missedMessage, timeStamp),
13 -                               'popupalert');
14 +                               'dashboard');
15                 }
16  
17         },
18 @@ -442,7 +443,7 @@
19                 this.appControl.showBanner(
20                         {
21                                 "messageText": message,
22 -                               "soundClass": 'notifications'
23 +                               "soundClass": ''
24                         }, 
25                         
26                         {
27 @@ -796,7 +797,7 @@
28                                         applicationStylesheets: ["stylesheets/phone.css"],
29                                         name: stageName, 
30                                         "height": height, 
31 -                                       soundclass: "alerts"
32 +                                       soundclass: "none"
33                                 }, 
34                                 this.onAnnounceDisconnectAbnormalCreated.bind(this, name, callState.number, label, picture, message, callerDetails),
35                                 'popupalert');
36 @@ -868,7 +869,7 @@
37                 this.appControl.showBanner(
38                         {
39                                 messageText: message,
40 -                               soundClass: 'notifications'
41 +                               soundClass: ''
42                         }, 
43                         {
44                                 prefill: callbackNumber
45 @@ -903,7 +904,7 @@
46                                         applicationStylesheets: ["stylesheets/phone.css"],
47                                         name: stageName, 
48                                         "height": height, 
49 -                                       soundclass: "alerts"
50 +                                       soundclass: "none"
51                                 }, 
52                                 this.onAnnounceDialFailCreated.bind(this, message),
53                                 'popupalert');