Merge "Remove associated task views if task is removed while Overview is showing" into ub-launcher3-edmonton
diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java
index f521b25..8d6b890 100644
--- a/quickstep/src/com/android/quickstep/views/RecentsView.java
+++ b/quickstep/src/com/android/quickstep/views/RecentsView.java
@@ -144,6 +144,14 @@
// 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;