Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

frameworks-policies-base: Commit

frameworks/policies/base


Commit MetaInfo

Revisiónc9878cea4d0c109a7a6e1bac03aae09221773be0 (tree)
Tiempo2010-12-20 16:37:38
AutorYi Sun <beyounn@gmai...>
CommiterChih-Wei Huang

Log Message

KeyguardViewMediator: fix a race condition

There could a race condition where the lock screen does not show up before
the machine went into sleep. Remove the screenon flag check so that machine
can go back to sleep after show the lock screen.

Cambiar Resumen

Diferencia incremental

--- a/phone/com/android/internal/policy/impl/KeyguardViewMediator.java
+++ b/phone/com/android/internal/policy/impl/KeyguardViewMediator.java
@@ -1019,7 +1019,7 @@ public class KeyguardViewMediator implements KeyguardViewCallback,
10191019 if (DEBUG) Log.d(TAG, "adjustUserActivityLocked mShowing: " + mShowing + " mHidden: " + mHidden);
10201020 boolean enabled = !mShowing || mHidden;
10211021 mRealPowerManager.enableUserActivity(enabled);
1022- if (!enabled && mScreenOn) {
1022+ if (!enabled) {
10231023 // reinstate our short screen timeout policy
10241024 pokeWakelock();
10251025 }
Show on old repository browser