diff options
author | 2016-10-24 14:35:29 +0000 | |
---|---|---|
committer | 2016-10-24 14:35:29 +0000 | |
commit | 1a1b16f3005c5df2915ab1e86c33c5ee0d9802f9 (patch) | |
tree | c4a05778560e1a896c81211825348c35068f31ba | |
parent | 7332192158986c652c78e477c9a8cf0194f9060d (diff) | |
parent | 77fc19fa8ebd0cb96ba66281f281e9f496c9daa2 (diff) |
Merge "Avoid NPE around mReusedTask of ActivityStarter" am: f741f88284 am: e79cb5c81d
am: 77fc19fa8e
Change-Id: I477db42ff85d52c07f29b844d7d251ce631251cd
-rw-r--r-- | services/core/java/com/android/server/am/ActivityStarter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/am/ActivityStarter.java b/services/core/java/com/android/server/am/ActivityStarter.java index 85ab49261716..115971f6fffc 100644 --- a/services/core/java/com/android/server/am/ActivityStarter.java +++ b/services/core/java/com/android/server/am/ActivityStarter.java @@ -1614,9 +1614,9 @@ class ActivityStarter { == (FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_CLEAR_TASK)) { // The caller has requested to completely replace any existing task with its new // activity. Well that should not be too hard... + intentActivity.task.performClearTaskLocked(); + intentActivity.task.setIntent(mStartActivity); mReuseTask = intentActivity.task; - mReuseTask.performClearTaskLocked(); - mReuseTask.setIntent(mStartActivity); // When we clear the task - focus will be adjusted, which will bring another task // to top before we launch the activity we need. This will temporary swap their // mTaskToReturnTo values and we don't want to overwrite them accidentally. |