summaryrefslogtreecommitdiffstats
path: root/location/java
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-02-24 11:52:59 -0500
committerMike Lockwood <lockwood@android.com>2010-02-24 11:56:33 -0500
commit63598a0619776b421f27cd12fb29eb83dc327997 (patch)
treebd729629acb4eac8663a769cb73a133f8be15b44 /location/java
parent6c0df0b47328655aa450f406ffb39fda5703a55c (diff)
downloadframeworks_base-63598a0619776b421f27cd12fb29eb83dc327997.zip
frameworks_base-63598a0619776b421f27cd12fb29eb83dc327997.tar.gz
frameworks_base-63598a0619776b421f27cd12fb29eb83dc327997.tar.bz2
Fix broken location extras in GpsLocationProvider.
Fixes http://code.google.com/p/android/issues/detail?id=4151 (Satellite count not being provided by Location class any more. Location.getExtras() returns null.) Change-Id: I4cf2922f4a5ed216541f8a8553523d1f6a1c1d0c Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'location/java')
-rwxr-xr-xlocation/java/com/android/internal/location/GpsLocationProvider.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/location/java/com/android/internal/location/GpsLocationProvider.java b/location/java/com/android/internal/location/GpsLocationProvider.java
index 8e84106..36b6106 100755
--- a/location/java/com/android/internal/location/GpsLocationProvider.java
+++ b/location/java/com/android/internal/location/GpsLocationProvider.java
@@ -321,7 +321,9 @@ public class GpsLocationProvider implements LocationProviderInterface {
public GpsLocationProvider(Context context, ILocationManager locationManager) {
mContext = context;
mLocationManager = locationManager;
- mNIHandler= new GpsNetInitiatedHandler(context, this);
+ mNIHandler = new GpsNetInitiatedHandler(context, this);
+
+ mLocation.setExtras(mLocationExtras);
// Create a wake lock
PowerManager powerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);