Skip to content

Commit 7c46e43

Browse files
John SpurlockAndroid (Google) Code Review
authored andcommitted
Merge "Fix the dock-insertion Dream entry codepath." into jb-mr1-dev
2 parents 634471e + 015b9f4 commit 7c46e43

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)