Skip to content

Commit 015b9f4

Browse files
committed
Fix the dock-insertion Dream entry codepath.
Bug: 6956040 Change-Id: I663e13f8a28db13b94d0f5aa4dbcf0cd64ef22fe
1 parent a130046 commit 015b9f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/java/com/android/server/power/PowerManagerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ public void onReceive(Context context, Intent intent) {
426426
}
427427

428428
// stop the screensaver if we're now unplugged
429-
if (mPolicy != null) {
429+
if (mPolicy != null && wasPowered) {
430430
mPolicy.stopScreenSaver();
431431
}
432432
}

0 commit comments

Comments
 (0)