Merge "Fixing Recents crash when resetting focus of TaskView already returned to the pool." into lmp-mr1-dev
This commit is contained in:
@@ -156,6 +156,9 @@ public class TaskStackView extends FrameLayout implements TaskStack.TaskStackCal
|
|||||||
|
|
||||||
/** Resets this TaskStackView for reuse. */
|
/** Resets this TaskStackView for reuse. */
|
||||||
void reset() {
|
void reset() {
|
||||||
|
// Reset the focused task
|
||||||
|
resetFocusedTask();
|
||||||
|
|
||||||
// Return all the views to the pool
|
// Return all the views to the pool
|
||||||
int childCount = getChildCount();
|
int childCount = getChildCount();
|
||||||
for (int i = childCount - 1; i >= 0; i--) {
|
for (int i = childCount - 1; i >= 0; i--) {
|
||||||
@@ -175,7 +178,6 @@ public class TaskStackView extends FrameLayout implements TaskStack.TaskStackCal
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Reset the stack state
|
// Reset the stack state
|
||||||
resetFocusedTask();
|
|
||||||
mStackViewsDirty = true;
|
mStackViewsDirty = true;
|
||||||
mStackViewsClipDirty = true;
|
mStackViewsClipDirty = true;
|
||||||
mAwaitingFirstLayout = true;
|
mAwaitingFirstLayout = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user