Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63598a06 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

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: default avatarMike Lockwood <lockwood@android.com>
parent 6c0df0b4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -323,6 +323,8 @@ public class GpsLocationProvider implements LocationProviderInterface {
        mLocationManager = locationManager;
        mNIHandler = new GpsNetInitiatedHandler(context, this);

        mLocation.setExtras(mLocationExtras);

        // Create a wake lock
        PowerManager powerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
        mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_KEY);