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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user