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));
|
EventBus.getDefault().send(new LaunchTaskSucceededEvent(taskIndexFromFront));
|
||||||
} else {
|
} else {
|
||||||
// Dismiss the task if we fail to launch it
|
// Dismiss the task if we fail to launch it
|
||||||
|
if (taskView != null) {
|
||||||
taskView.dismissTask();
|
taskView.dismissTask();
|
||||||
|
}
|
||||||
|
|
||||||
// Keep track of failed launches
|
// Keep track of failed launches
|
||||||
EventBus.getDefault().send(new LaunchTaskFailedEvent());
|
EventBus.getDefault().send(new LaunchTaskFailedEvent());
|
||||||
|
|||||||
Reference in New Issue
Block a user