am c5bfe196: Merge "Fix screen timeout determination for starting dream." into jb-mr1-dev
* commit 'c5bfe1962626ec73ce8dac67ab26bad96637e2f1': Fix screen timeout determination for starting dream.
This commit is contained in:
@@ -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