summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorchaviw <chaviw@google.com>2018-03-02 10:42:36 -0800
committerchaviw <chaviw@google.com>2018-03-06 10:49:01 -0800
commitb28de1f411299e26dceba9fa870effdb3a0bd48c (patch)
tree1635b5b761c8a07707ac2b66e175912f615f6ed3 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent0db51ad50ef0791b196c33759f3ad2c59b2d9395 (diff)
Only set appToken.setCanTurnScreenOn to false if screen was turned on.
The appToken setCanTurnScreenOn value is used to ensure that a relayout doesn't cause the screen to get turned on again within a single launch. Previously, it was being set to false for the first window that called relayout. This is incorrect since an app can have multiple windows displayed. Only one of the windows needs to have the flag TURN_SCREEN_ON in order to wakeup the screen. Only set appToken setCanTurnScreenOn to false if all the conditions were met to turn the screen on. This way if the first window doesn't have the TURN_SCREEN_ON flag, other windows could still trigger the screen getting turned on. Change-Id: If8ff9ba1afb1f7f9632e8c911ed475aed531b880 Fixes: 74086704 Test: Incoming call turns screen on Test: testPrepareWindowToDisplayDuringRelayout Test: atest WindowManagerSmokeTest
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions