Fix the dock-insertion Dream entry codepath.

Bug: 6956040
Change-Id: I663e13f8a28db13b94d0f5aa4dbcf0cd64ef22fe
This commit is contained in:
Daniel Sandler
2012-08-09 00:05:36 -04:00
parent a130046733
commit 015b9f45d4

View File

@@ -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();
}
}