summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.h
diff options
context:
space:
mode:
authorBryce Lee <brycelee@google.com>2017-03-20 14:20:22 -0700
committerBryce Lee <brycelee@google.com>2017-04-03 16:33:36 -0700
commitaf691c0be7bbfea63e880dd717c51a38a0bc874a (patch)
tree4d32d4010f55af4cd74b1b00f7c4ad28925f352b /tools/aapt2/java/JavaClassGenerator.h
parent21a5edcc24cbca1ae3f0855d71737b22ab81ad6d (diff)
Clean up activity/stack associations.
The stack currently holds a reference to resuming and pausing activities. These are usually cleaned up when the activity ends or the task is reparented. However, it is possible for an activity to lose its reference to its task in other areas (such as ActivityStarter), which can lead to the stack not being updated correctly. This changelist adds a method to the ActivityStack to disassociate the stack from an ActivityRecord. In addition to places where this is called when an activity ends, this method is invoked on the children of a task when the task is reparented. The task member variable of ActivityRecord is also now surrounded by a setter/getter, with the setter always invoking the dissociation logic on a previous stack. Test: bit FrameworksServicesTests:com.android.server.am.ActivityRecordTests Change-Id: Iffeccdb6f011958896271673946acfed28856f53 Fixes: 36387417
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.h')
0 files changed, 0 insertions, 0 deletions