diff --git a/framework/src/com/phonegap/GeoListener.java b/framework/src/com/phonegap/GeoListener.java index 613cbc15..3fb8fe96 100644 --- a/framework/src/com/phonegap/GeoListener.java +++ b/framework/src/com/phonegap/GeoListener.java @@ -78,7 +78,7 @@ public class GeoListener { loc = mGps.getLocation(); if (loc == null && mNetwork != null) loc = mNetwork.getLocation(); - else + if(loc == null) loc = new Location(LocationManager.NETWORK_PROVIDER); return loc; }