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

am: c169a9d8a1

Change-Id: I16e8679a30285ca9c1472022348861b759e1aed7
This commit is contained in:
Winson
2016-06-13 22:17:04 +00:00
committed by android-build-merger

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());