mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
Merge branch 'master' of http://github.com/stevengill/phonegap-android
This commit is contained in:
commit
9c1a1207bb
@ -78,7 +78,7 @@ public class GeoListener {
|
|||||||
loc = mGps.getLocation();
|
loc = mGps.getLocation();
|
||||||
if (loc == null && mNetwork != null)
|
if (loc == null && mNetwork != null)
|
||||||
loc = mNetwork.getLocation();
|
loc = mNetwork.getLocation();
|
||||||
else
|
if(loc == null)
|
||||||
loc = new Location(LocationManager.NETWORK_PROVIDER);
|
loc = new Location(LocationManager.NETWORK_PROVIDER);
|
||||||
return loc;
|
return loc;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user