am bafc9eeb: am 7453a0aa: am 587488e0: am 81eeef58: Merge "Update time when turning on screen, in addition to waking up" into mnc-dev

* commit 'bafc9eeb816ad94482485f6c122d9e3de97620f8':
  Update time when turning on screen, in addition to waking up
This commit is contained in:
Jorim Jaggi
2015-08-14 03:18:39 +00:00
committed by Android Git Automerger
4 changed files with 10 additions and 2 deletions

View File

@@ -1571,6 +1571,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;

View File

@@ -2226,7 +2226,7 @@ public class NotificationPanelView extends PanelView implements
}
};
public void onScreenTurnedOn() {
public void onScreenTurningOn() {
mKeyguardStatusView.refreshTime();
}

View File

@@ -3837,11 +3837,14 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
public void onScreenTurnedOn() {
mScreenOnFromKeyguard = true;
mStackScroller.setAnimationsEnabled(true);
mNotificationPanel.onScreenTurnedOn();
mNotificationPanel.setTouchDisabled(false);
updateVisibleToUser();
}
public void onScreenTurningOn() {
mNotificationPanel.onScreenTurningOn();
}
/**
* This handles long-press of both back and recents. They are
* handled together to capture them both being long-pressed

View File

@@ -172,6 +172,10 @@ public class StatusBarKeyguardViewManager {
mPhoneStatusBar.onScreenTurnedOn();
}
public void onScreenTurningOn() {
mPhoneStatusBar.onScreenTurningOn();
}
public void onScreenTurnedOn() {
mScreenTurnedOn = true;
mWakeAndUnlocking = false;