diff options
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java | 4 |
1 files changed, 3 insertions, 1 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 9df0db611d08..bef4cd115966 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java +++ b/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java @@ -156,6 +156,9 @@ public class TaskStackView extends FrameLayout implements TaskStack.TaskStackCal /** Resets this TaskStackView for reuse. */ void reset() { + // Reset the focused task + resetFocusedTask(); + // Return all the views to the pool int childCount = getChildCount(); for (int i = childCount - 1; i >= 0; i--) { @@ -175,7 +178,6 @@ public class TaskStackView extends FrameLayout implements TaskStack.TaskStackCal } // Reset the stack state - resetFocusedTask(); mStackViewsDirty = true; mStackViewsClipDirty = true; mAwaitingFirstLayout = true; |