summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/keyguard
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2015-08-13 15:53:14 -0700
committerJorim Jaggi <jjaggi@google.com>2015-08-13 15:56:41 -0700
commit9373911d41c133fce80b8ecf6e688204f2c667e7 (patch)
tree3d1649d1d9d339361744432a32710ab12bebe9c0 /packages/SystemUI/src/com/android/systemui/keyguard
parentff9912d594bc5cdc10a4a224b9a2296bac50851b (diff)
downloadframeworks_base-9373911d41c133fce80b8ecf6e688204f2c667e7.zip
frameworks_base-9373911d41c133fce80b8ecf6e688204f2c667e7.tar.gz
frameworks_base-9373911d41c133fce80b8ecf6e688204f2c667e7.tar.bz2
Update time when turning on screen, in addition to waking up
When in ambient display mode, we didn't get a callback to onStartedWakingUp, thus the time was never refreshed. Since broadcasts are disabled in this low-power state, we need to refresh the clock manually before turning on the screen, because we can't rely on the broadcasts to be delivered. Bug: 23171638 Change-Id: I249f4195a14995f7c1467e73ac2aa400b871f80e
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/keyguard')
-rw-r--r--packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
index c1df788..a1c8b1a 100644
--- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
+++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
@@ -1564,6 +1564,7 @@ public class KeyguardViewMediator extends SystemUI {
private void handleNotifyScreenTurningOn(IKeyguardDrawnCallback callback) {
synchronized (KeyguardViewMediator.this) {
if (DEBUG) Log.d(TAG, "handleNotifyScreenTurningOn");
+ mStatusBarKeyguardViewManager.onScreenTurningOn();
if (callback != null) {
if (mWakeAndUnlocking) {
mDrawnCallback = callback;