Merge "Ensuring we don't try and dismiss task views that are already removed." into nyc-dev

This commit is contained in:
Winson Chung
2016-06-13 21:06:37 +00:00
committed by Android (Google) Code Review

View File

@@ -209,7 +209,9 @@ public class RecentsTransitionHelper {
EventBus.getDefault().send(new LaunchTaskSucceededEvent(taskIndexFromFront));
} else {
// Dismiss the task if we fail to launch it
taskView.dismissTask();
if (taskView != null) {
taskView.dismissTask();
}
// Keep track of failed launches
EventBus.getDefault().send(new LaunchTaskFailedEvent());