Adds roam-only option to network preferences. Mod by w5mw, patch submitted by JackieR...
[webos-internals:adamrmcd-modifications.git] / phoneprefs / roam-control.patch
1 By default, the Pre has no "Roam Only" mode. For fringe Sprint
2 service areas, this can be very annoying, as the phone will tend
3 to prefer a weak Sprint signal versus a strong Verizon/Other
4 CDMA signal.
5
6 Mod by w5mw
7 Patch submitted by JackieRipper
8 Index: /usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js
9 ===================================================================
10 --- .orig/usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js
11 +++ /usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js
12 @@ -205,7 +205,8 @@ var PreflistAssistant = Class.create({
13                 
14                 this.voiceRoamingChoices =  [
15                         {label: this.carrierOnlyLabel,value: "homeonly"},
16 -                       {label : $L("Automatic"),value: "any"}
17 +                       {label : $L("Automatic"),value: "any"},
18 +                       {label : "Roam Only",value: "roamonly"}
19                 ],
20         
21                 this.voiceRoamingModel = {
22 @@ -996,6 +997,11 @@ voiceNumberSetDone: function(payload){
23                         $('dataroamingrow').show();
24                         $('voiceRoamingRow').removeClassName('last');
25                 }
26 +               else if(payload.extended.mode == 'roamonly') {
27 +                       this.voiceRoamingModel.currentVoiceRoaming = "roamonly";
28 +                       $('dataroamingrow').show();
29 +                       $('voiceRoamingRow').removeClassName('last');
30 +               }
31                 else {
32                         this.voiceRoamingModel.currentVoiceRoaming = "homeonly";
33                         $('dataroamingrow').hide();