diff options
author | Winson Chung <winsonc@google.com> | 2015-08-11 02:33:15 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-08-11 02:33:15 +0000 |
commit | c00b1067a05116548a0883e1400a1c4715078797 (patch) | |
tree | 3eb83e45c4964fe5d6f54330920a7533c2ead131 | |
parent | f8359cfb93e349771388709b160ae1b9d3f880b3 (diff) | |
parent | 1df9c3c6bd985cf5819b6c1e9fb8ff096950dfa8 (diff) | |
download | frameworks_base-c00b1067a05116548a0883e1400a1c4715078797.zip frameworks_base-c00b1067a05116548a0883e1400a1c4715078797.tar.gz frameworks_base-c00b1067a05116548a0883e1400a1c4715078797.tar.bz2 |
Merge "Pushing the startActivity before the calls to remove task." into mnc-dev
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java b/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java index abdebf3..0068f84 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java +++ b/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java @@ -1121,9 +1121,6 @@ public class TaskStackView extends FrameLayout implements TaskStack.TaskStackCal mViewPool.returnViewToPool(tv); } - // Notify the callback that we've removed the task and it can clean up after it - mCb.onTaskViewDismissed(removedTask); - // Get the stack scroll of the task to anchor to (since we are removing something, the front // most task will be our anchor task) Task anchorTask = null; @@ -1172,6 +1169,11 @@ public class TaskStackView extends FrameLayout implements TaskStack.TaskStackCal // Fade the dismiss button back in showDismissAllButton(); } + + // Notify the callback that we've removed the task and it can clean up after it. Note, we + // do this after onAllTaskViewsDismissed() is called, to allow the home activity to be + // started before the call to remove the task. + mCb.onTaskViewDismissed(removedTask); } @Override |