Merge "Remove associated task views if task is removed while Overview is showing" into ub-launcher3-edmonton

This commit is contained in:
android-build-team Robot 2018-05-01 18:12:34 +00:00 committed by Android (Google) Code Review
commit 954157a228
1 changed files with 8 additions and 0 deletions

View File

@ -144,6 +144,14 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
// TODO: Re-enable layout transitions for addition of the unpinned task
reloadIfNeeded();
}
@Override
public void onTaskRemoved(int taskId) {
TaskView taskView = getTaskView(taskId);
if (taskView != null) {
dismissTask(taskView, true /* animate */, false /* removeTask */);
}
}
};
private int mLoadPlanId = -1;