From 64c62ba503c73eee1fb647ffcc1b3df287640ab1 Mon Sep 17 00:00:00 2001 From: Joe Onorato <> Date: Tue, 24 Mar 2009 20:13:57 -0700 Subject: [PATCH] Automated import from //branches/donutburger/...@141409,141409 --- services/java/com/android/server/PowerManagerService.java | 4 ++++ 1 file changed, 4 insertions(+) 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) {