diff --git a/services/java/com/android/server/PowerManagerService.java b/services/java/com/android/server/PowerManagerService.java index 2fac5f719f0c0..a900b3e5a3071 100644 --- a/services/java/com/android/server/PowerManagerService.java +++ b/services/java/com/android/server/PowerManagerService.java @@ -929,6 +929,10 @@ class PowerManagerService extends IPowerManager.Stub implements LocalPowerManage private void sendNotificationLocked(boolean on, int why) { + if (!on) { + mStillNeedSleepNotification = false; + } + // Add to the queue. int index = 0; while (mBroadcastQueue[index] != -1) {