Ensuring we don't try and dismiss task views that are already removed.

Bug: 29240786
Change-Id: I724e7c366b2fb835fd81fa966689f999953ef4c8
This commit is contained in:
Winson
2016-06-13 12:14:45 -07:00
committed by Winson Chung
parent da66010cd8
commit 1d581bcb09

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