summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorCraig Mautner <cmautner@google.com>2012-06-21 16:47:19 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-06-21 16:47:19 -0700
commitff695199ba54ece128ba38938af3ae777ac16166 (patch)
treea4b10686e335699fe565f4cc868e50f77f6b56e8 /policy
parenta0a708a2366dcbc7b716360ce7db54886a278dc4 (diff)
parent42a6516de996b547ecbfc53fd7e101f2b8b6c490 (diff)
downloadframeworks_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.java4
-rwxr-xr-xpolicy/src/com/android/internal/policy/impl/PhoneWindowManager.java4
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;
}