Fix the dock-insertion Dream entry codepath.
Bug: 6956040 Change-Id: I663e13f8a28db13b94d0f5aa4dbcf0cd64ef22fe
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user