Merge "Ensuring we don't try and dismiss task views that are already removed." into nyc-dev
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user