diff options
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeServiceHost.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeServiceHost.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeServiceHost.java index 09531c3b18bd..01f2e9b8371d 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeServiceHost.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeServiceHost.java @@ -230,7 +230,11 @@ public final class DozeServiceHost implements DozeHost { mDozingRequested = true; updateDozing(); mDozeLog.traceDozing(mStatusBarStateController.isDozing()); - mCentralSurfaces.updateIsKeyguard(); + // This is initialized in a CoreStartable, but binder calls from DreamManagerService can + // arrive earlier + if (mCentralSurfaces != null) { + mCentralSurfaces.updateIsKeyguard(); + } } } |