Fix timing problem that was introduced when we removed location provider polling

The wake lock was not being held until after we enabled location tracking,
so the check to see if the wake lock was held before propogating a
new location prevented us from receiving a network location as soon as we
enabled the provider.
This check is not necessary anyway, so this change removes it.

Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
Mike Lockwood
2009-04-21 21:27:33 -07:00
parent 9ce7217c8e
commit a0e3cd3853

View File

@@ -1584,10 +1584,7 @@ public class LocationManagerService extends ILocationManager.Stub {
return;
}
// Process the location fix if we're holding a wakelock
if (mWakeLockAcquireTime != 0) {
handleLocationChangedLocked(location);
}
handleLocationChangedLocked(location);
if ((mWakeLockAcquireTime != 0) &&
(SystemClock.elapsedRealtime() - mWakeLockAcquireTime