summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorchaviw <chaviw@google.com>2018-03-13 14:15:51 -0700
committerchaviw <chaviw@google.com>2018-03-13 16:59:22 -0700
commitee6f81b20286e5942ce738763e3b8713dfc7c9ac (patch)
treee52693da0540bece2a5931aac566d9928a789bdb /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent4c6130ddcc2afb951f56e76026f2fb145d598aa6 (diff)
Set options on startingActivity instead of topActivity
When an activity is starting, it may not be the top activity yet. If that occurs, the options are set on the wrong activity when moveTaskToFrontLocked is called. Therefore, when the options on the correct activity are consumed and cleared, the options are still set on the incorrect activity. This can lead to incorrect behavior. Specifically, this was causing issues when a RemoteAnimation was set for a starting activity. The activity that was previously on top was also getting the options and expecting a RemoteAnimation. This caused no animation to execute when the next expected animation was a WindowAnimation because it was still waiting on the RemoteAnimation Fixes: 74611027 Test: Launch activity then background. Open second activity from notification. When pressing back, window animation should start. Change-Id: I2198d8e2a0b14fb060c71a265cc98f24ce018ef9
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions