Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d42e7b57 authored by Winson Chung's avatar Winson Chung Committed by Android Git Automerger
Browse files

am c0542a96: am 7bd54c11: Merge "Fixing Recents crash when resetting focus of...

am c0542a96: am 7bd54c11: Merge "Fixing Recents crash when resetting focus of TaskView already returned to the pool." into lmp-mr1-dev

* commit 'c0542a96':
  Fixing Recents crash when resetting focus of TaskView already returned to the pool.
parents 55b1eb84 c0542a96
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;