diff options
author | Craig Mautner <cmautner@google.com> | 2012-06-21 16:47:19 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-06-21 16:47:19 -0700 |
commit | ff695199ba54ece128ba38938af3ae777ac16166 (patch) | |
tree | a4b10686e335699fe565f4cc868e50f77f6b56e8 /policy | |
parent | a0a708a2366dcbc7b716360ce7db54886a278dc4 (diff) | |
parent | 42a6516de996b547ecbfc53fd7e101f2b8b6c490 (diff) | |
download | frameworks_base-ff695199ba54ece128ba38938af3ae777ac16166.zip frameworks_base-ff695199ba54ece128ba38938af3ae777ac16166.tar.gz frameworks_base-ff695199ba54ece128ba38938af3ae777ac16166.tar.bz2 |
am 42a6516d: am 89c6bec3: Merge "Make sure onScreenTurnedOn is called at power on." into jb-dev
* commit '42a6516de996b547ecbfc53fd7e101f2b8b6c490':
Make sure onScreenTurnedOn is called at power on.
Diffstat (limited to 'policy')
-rw-r--r-- | policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java | 4 | ||||
-rwxr-xr-x | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java b/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java index 85156998..e84e912 100644 --- a/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java +++ b/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java @@ -442,7 +442,9 @@ public class KeyguardViewMediator implements KeyguardViewCallback, mScreenOn = true; mDelayedShowingSequence++; if (DEBUG) Log.d(TAG, "onScreenTurnedOn, seq = " + mDelayedShowingSequence); - notifyScreenOnLocked(showListener); + if (showListener != null) { + notifyScreenOnLocked(showListener); + } } } diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java index beeea8e..756a3df 100755 --- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java @@ -3608,6 +3608,10 @@ public class PhoneWindowManager implements WindowManagerPolicy { }); } } else { + if (mKeyguardMediator != null) { + // Must set mScreenOn = true. + mKeyguardMediator.onScreenTurnedOn(null); + } synchronized (mLock) { mScreenOnFully = true; } |