Merging Fil's fix

This commit is contained in:
Joe Bowser 2009-07-17 13:40:15 -07:00
commit ed17fcea6b
2 changed files with 9 additions and 1 deletions

View File

@ -51,8 +51,14 @@ public class GeoListener {
void fail()
{
// Do we need to know why? How would we handle this?
if (id != "global") {
mAppView.loadUrl("javascript:navigator.geolocation.fail(" + id + ")");
}
else
{
mAppView.loadUrl("javascript:navigator.geolocation.fail()");
}
}
// This stops the listener
void stop()

View File

@ -54,6 +54,7 @@ public class GpsListener implements LocationListener {
public void onProviderDisabled(String provider) {
// TODO Auto-generated method stub
Log.d(LOG_TAG, "The provider " + provider + " is disabled");
owner.fail();
}
public void onProviderEnabled(String provider) {
@ -68,6 +69,7 @@ public class GpsListener implements LocationListener {
if(status == 0)
{
Log.d(LOG_TAG, provider + " is OUT OF SERVICE");
owner.fail();
}
else if(status == 1)
{