OSDN Git Service

Persist TaskRecord before calling performClearTaskLocked.
authorBryce Lee <brycelee@google.com>
Thu, 9 Mar 2017 19:54:08 +0000 (11:54 -0800)
committerBryce Lee <brycelee@google.com>
Fri, 10 Mar 2017 16:03:14 +0000 (08:03 -0800)
commit59dad4ea14f4bdd9c3b7a646230ec56dd5fb8b37
tree31b28db320e1e87aa693da84a36f94a4aab3fcb2
parent70c8e868085ca5bb155dfc58b677b26d4b2e4042
Persist TaskRecord before calling performClearTaskLocked.

A recent change persisted this record with a member variable that
could be cleared as a result of performClearTasklocked. This
changelist resolves this by using a local variable to store the
reference until after the method call.

Change-Id: I6d5d42e06afdbf6e8ff960fcfae71c80abd891f4
Fixes: 36001400
Test: adb shell am instrument -w -e class com.google.android.setupwizard.tests.activity.SetupWizardExitActivityTest com.google.android.setupwizard.tests.activity com.google.android.setupwizard.tests.activity/.SetupWizardTestRunner
services/core/java/com/android/server/am/ActivityStarter.java