Merge "Do not process set WindowAnimator param when screen is already on." into oc-mr1-dev am: 7a558a91d4
am: 10d73e4104
Change-Id: I3a4d8b1c4b29d06d01332cff50d13b82c8c0206b
This commit is contained in:
@@ -1652,7 +1652,14 @@ class WindowStateAnimator {
|
||||
if (mWin.mAppToken != null) {
|
||||
mWin.mAppToken.setCanTurnScreenOn(false);
|
||||
}
|
||||
mAnimator.mBulkUpdateParams |= SET_TURN_ON_SCREEN;
|
||||
|
||||
// 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()) {
|
||||
|
||||
Reference in New Issue
Block a user