summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2019-07-02 01:03:07 +0800
committerRiddle Hsu <riddlehsu@google.com>2019-07-02 21:41:49 +0800
commit4bb06bed9c5eb4dfa056ecbd384e920530b34b4f (patch)
treefd7eec608de912525d4377ba241f029c355bc744 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parente6c41d27e9cb076fe6b97cbb2cd671b8d3a0bd2c (diff)
Fix setCanTurnScreenOn for a launching activity
Originally the flag set by Activity#setCanTurnScreenOn takes effect when the activity will be resumed. But if the activity uses the method while the creation of activity is needed, the flag doesn't have the chance to be set before the check for applying it because the client side creation is after the launching flow. By adding the check for ActivityRecord#canTurnScreenOn at the same path of FLAG_TURN_SCREEN_ON, it is able to turn the screen on when the activity relayouts to be visible. AppWindowToken#canTurnScreenOn is renamed to currentLaunchCanTurnScreenOn because it only applies to the current launch and avoids confusion with the one in ActivityRecord. Bug: 136214822 Test: atest WindowStateTests#testPrepareWindowToDisplayDuringRelayout Test: atest ActivityVisibilityTests#testTurnScreenOnActivity Change-Id: I9cb877357fb55c95b0d95044fe9e8ccba0c083ad
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions