mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
Cherry picking the listeners to get GeoLocation to work
This commit is contained in:
parent
294694ef5d
commit
e179ca023c
@ -50,6 +50,7 @@ public class GpsListener implements LocationListener {
|
||||
|
||||
public Location getLocation()
|
||||
{
|
||||
cLoc = mLocMan.getLastKnownLocation(LocationManager.GPS_PROVIDER);
|
||||
return cLoc;
|
||||
}
|
||||
|
||||
|
@ -50,6 +50,7 @@ public class NetworkListener implements LocationListener {
|
||||
|
||||
public Location getLocation()
|
||||
{
|
||||
cLoc = mLocMan.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
|
||||
return cLoc;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user