OSDN Git Service

Fix timing problem that was introduced when we removed location provider polling
authorMike Lockwood <lockwood@android.com>
Wed, 22 Apr 2009 04:27:33 +0000 (21:27 -0700)
committerMike Lockwood <lockwood@android.com>
Wed, 22 Apr 2009 04:27:33 +0000 (21:27 -0700)
commita0e3cd3853da1d14da4918c49d25128622cf0610
treeade384126851d16b3905ac8fa95052cd1be123bb
parent9ce7217c8eb4141bda68b85641814958da58a7ab
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>
services/java/com/android/server/LocationManagerService.java