5 new, 10 updated patches.
[webos-internals:djcin7s-modifications.git] / phone / phone-ringtone-for-unknown-callers.patch
1 diff --git a/usr/palm/applications/com.palm.app.phone/app/models/TelephonyEventListener.js b/usr/palm/applications/com.palm.app.phone/app/models/TelephonyEventListener.js
2 index 09edc4a..61ec0c8 100644
3 --- a/usr/palm/applications/com.palm.app.phone/app/models/TelephonyEventListener.js
4 +++ b/usr/palm/applications/com.palm.app.phone/app/models/TelephonyEventListener.js
5 @@ -711,7 +711,9 @@ var TelephonyEventListener = Class.create({
6         
7         // callback after a contact lookup -- announces incoming call or passes on CNAP update
8         onIncomingLookupComplete: function(callId, cnapName, number, update, contact) {
9 -               
10 +               if (!(contact.name)) {
11 +                       contact.ringtoneLoc = "/media/internal/ringtones/ringtoneforunknown.mp3";
12 +               }               
13                 contact.cnapName = cnapName;
14                 
15                 QDLogger.log( "TelephonyEventListener#onIncomingLookupComplete", "namefromcontacts?:" , !!(contact.name));