Merge "Set canTurnScreenOn to false for any window with flag." into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f3fc9a62cd
@@ -2284,13 +2284,14 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
|
|||||||
// interactive, the value may persist until the next animation, which could potentially
|
// interactive, the value may persist until the next animation, which could potentially
|
||||||
// be occurring while turning off the screen. This would lead to the screen incorrectly
|
// be occurring while turning off the screen. This would lead to the screen incorrectly
|
||||||
// turning back on.
|
// turning back on.
|
||||||
if (hasTurnScreenOnFlag && allowTheaterMode && canTurnScreenOn
|
if (hasTurnScreenOnFlag) {
|
||||||
&& !mPowerManagerWrapper.isInteractive()) {
|
if (allowTheaterMode && canTurnScreenOn && !mPowerManagerWrapper.isInteractive()) {
|
||||||
if (DEBUG_VISIBILITY || DEBUG_POWER) {
|
if (DEBUG_VISIBILITY || DEBUG_POWER) {
|
||||||
Slog.v(TAG, "Relayout window turning screen on: " + this);
|
Slog.v(TAG, "Relayout window turning screen on: " + this);
|
||||||
|
}
|
||||||
|
mPowerManagerWrapper.wakeUp(SystemClock.uptimeMillis(),
|
||||||
|
"android.server.wm:TURN_ON");
|
||||||
}
|
}
|
||||||
mPowerManagerWrapper.wakeUp(SystemClock.uptimeMillis(),
|
|
||||||
"android.server.wm:TURN_ON");
|
|
||||||
|
|
||||||
if (mAppToken != null) {
|
if (mAppToken != null) {
|
||||||
mAppToken.setCanTurnScreenOn(false);
|
mAppToken.setCanTurnScreenOn(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user