fixed geolocation null bug

This commit is contained in:
Steven Gill 2010-05-06 15:43:56 -07:00
parent 020178e40b
commit 4ff406f9df

View File

@ -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;
}