From 015b9f45d4cfa1e9764d7fbd6142ee612b2ea628 Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Thu, 9 Aug 2012 00:05:36 -0400 Subject: [PATCH] Fix the dock-insertion Dream entry codepath. Bug: 6956040 Change-Id: I663e13f8a28db13b94d0f5aa4dbcf0cd64ef22fe --- services/java/com/android/server/power/PowerManagerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/java/com/android/server/power/PowerManagerService.java b/services/java/com/android/server/power/PowerManagerService.java index cb6db3cec8289..1a5f23355d396 100644 --- a/services/java/com/android/server/power/PowerManagerService.java +++ b/services/java/com/android/server/power/PowerManagerService.java @@ -426,7 +426,7 @@ public class PowerManagerService extends IPowerManager.Stub } // stop the screensaver if we're now unplugged - if (mPolicy != null) { + if (mPolicy != null && wasPowered) { mPolicy.stopScreenSaver(); } }