Loading services/core/java/com/android/server/wm/WindowStateAnimator.java +8 −1 Original line number Diff line number Diff line Loading @@ -1657,9 +1657,16 @@ class WindowStateAnimator { if (mWin.mAppToken != null) { mWin.mAppToken.setCanTurnScreenOn(false); } // We do not add {@code SET_TURN_ON_SCREEN} when the screen is already // interactive as the value may persist until the next animation, which could // potentially occurring while turning off the screen. This would lead to the // screen incorrectly turning back on. if (!mService.mPowerManager.isInteractive()) { mAnimator.mBulkUpdateParams |= SET_TURN_ON_SCREEN; } } } if (hasSurface()) { w.mToken.hasVisible = true; } Loading Loading
services/core/java/com/android/server/wm/WindowStateAnimator.java +8 −1 Original line number Diff line number Diff line Loading @@ -1657,9 +1657,16 @@ class WindowStateAnimator { if (mWin.mAppToken != null) { mWin.mAppToken.setCanTurnScreenOn(false); } // We do not add {@code SET_TURN_ON_SCREEN} when the screen is already // interactive as the value may persist until the next animation, which could // potentially occurring while turning off the screen. This would lead to the // screen incorrectly turning back on. if (!mService.mPowerManager.isInteractive()) { mAnimator.mBulkUpdateParams |= SET_TURN_ON_SCREEN; } } } if (hasSurface()) { w.mToken.hasVisible = true; } Loading