9 New Patches.
[webos-internals:modifications.git] / phone / phone-gps-diagnostic-additional-information.patch
1 diff --git a/usr/palm/applications/com.palm.app.phone/app/controllers/poundGPS-assistant.js b/usr/palm/applications/com.palm.app.phone/app/controllers/poundGPS-assistant.js
2 index bf1b9f9..c8ef914 100644
3 --- a/usr/palm/applications/com.palm.app.phone/app/controllers/poundGPS-assistant.js
4 +++ b/usr/palm/applications/com.palm.app.phone/app/controllers/poundGPS-assistant.js
5 @@ -41,7 +41,15 @@ var PoundGPSAssistant = Class.create({
6                                         this.controller.get('vaccuracy').innerHTML = response.vertAccuracy;
7                                         this.controller.get('gpsinfo').show();
8                                 } else {
9 -                                       this.showError($L("Position Unavailable."));
10 +                                       this.showError($L("Accuracy appears to be poor."));
11 +                                       this.controller.get('lat').innerHTML = response.latitude;
12 +                                       this.controller.get('long').innerHTML = response.longitude;
13 +                                       this.controller.get('velocity').innerHTML = response.velocity;
14 +                                       this.controller.get('altitude').innerHTML = response.altitude;
15 +                                       this.controller.get('heading').innerHTML = response.heading;
16 +                                       this.controller.get('haccuracy').innerHTML = response.horizAccuracy;
17 +                                       this.controller.get('vaccuracy').innerHTML = response.vertAccuracy;
18 +                                       this.controller.get('gpsinfo').show();
19                                 }                               
20                         }
21                         else {
22 @@ -49,6 +57,18 @@ var PoundGPSAssistant = Class.create({
23                                         this.showError($L("Timeout."));
24                                 else if(response.errorCode == 2)
25                                         this.showError($L("Position Unavailable."));
26 +                               else if(response.errorCode == 3)
27 +                                       this.showError($L("GPS Returned Unknown Error."));
28 +                               else if(response.errorCode == 4)
29 +                                       this.showError($L("Permanent Error."));
30 +                               else if(response.errorCode == 5)
31 +                                       this.showError($L("Location Service Off."));
32 +                               else if(response.errorCode == 6)
33 +                                       this.showError($L("Permission Denied."));
34 +                               else if(response.errorCode == 7)
35 +                                       this.showError($L("Application already has a pending message."));
36 +                               else if(response.errorCode == 8)
37 +                                       this.showError($L("Application Blacklisted."));
38                                 else 
39                                         this.showError($L("Unknown Error."));
40                         }