Merge change Iad66a274 into eclair

* changes:
  Fix race condition in WindowManagerService.disableKeyguard()
This commit is contained in:
Android (Google) Code Review
2009-10-12 14:14:44 -04:00

View File

@@ -3971,7 +3971,9 @@ public class WindowManagerService extends IWindowManager.Stub
!= PackageManager.PERMISSION_GRANTED) {
throw new SecurityException("Requires DISABLE_KEYGUARD permission");
}
mKeyguardDisabled.acquire(token, tag);
synchronized (mKeyguardDisabled) {
mKeyguardDisabled.acquire(token, tag);
}
}
public void reenableKeyguard(IBinder token) {