Merge "Fix screen timeout determination for starting dream." into jb-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c5bfe19626
@@ -1830,8 +1830,8 @@ public class PowerManagerService extends IPowerManager.Stub
|
||||
|
||||
final boolean stateChanged = mPowerState != newState;
|
||||
|
||||
if (stateChanged && reason == WindowManagerPolicy.OFF_BECAUSE_OF_TIMEOUT) {
|
||||
if (mPolicy != null && mPolicy.isScreenSaverEnabled() && mIsPowered) {
|
||||
if (stateChanged && !newScreenOn && reason == WindowManagerPolicy.OFF_BECAUSE_OF_TIMEOUT) {
|
||||
if (mPolicy != null && mIsPowered && mPolicy.isScreenSaverEnabled()) {
|
||||
if (DEBUG) {
|
||||
Slog.d(TAG, "setPowerState: running screen saver instead of turning off screen");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user