summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorBryce Lee <brycelee@google.com>2018-03-05 14:19:26 -0800
committerBryce Lee <brycelee@google.com>2018-03-07 14:56:11 -0800
commitc4ab62a4a65a17db2b8140cd43d3c6e65c510bac (patch)
treec78f0e09b17b104d305ecdceb6842367f85ca0f8 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent999e97f405b8f01b12a6fb8e844d33dc807813fa (diff)
Couple mResumedActivity to Activity lifecycle.
mResumedActivity is a cached reference to the currently resumed activity in a stack. Previously, this value was set on demand at various points in the code. This can lead to discord with the ActivityRecord if the activity updates state without the containing ActivityStack being directly aware of the change. This changelist addresses the issue by placing mResumedActivity behind an accessor. A callback path has been added from ActivityRecord to the ActivityStack, signaling when the activity's state has changed. The stack can then update the state accordingly. Test: atest FrameworksServicesTests:com.android.server.am.ActivityStackTests#testResumedActivity Bug: 66344012 Fixes: 74118620 Change-Id: If950fd4c41f044ec67722ccc5b1d631cead70bce
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions