Merge branch 'readonly-p4-master'

This commit is contained in:
Amith Yamasani
2009-04-02 22:50:23 -07:00
committed by The Android Open Source Project

View File

@@ -2059,6 +2059,8 @@ public class LocationManagerService extends ILocationManager.Stub
private void updateWakelockStatusLocked(boolean screenOn) {
log("updateWakelockStatus(): " + screenOn);
long callerId = Binder.clearCallingIdentity();
boolean needsLock = false;
long minTime = Integer.MAX_VALUE;
@@ -2102,6 +2104,7 @@ public class LocationManagerService extends ILocationManager.Stub
mLocationHandler.removeMessages(MESSAGE_RELEASE_WAKE_LOCK);
releaseWakeLockLocked();
}
Binder.restoreCallingIdentity(callerId);
}
private void acquireWakeLockLocked() {