Merge "Do not throw exception on task vanished" into tm-qpr-dev
This commit is contained in:
@@ -267,9 +267,6 @@ class StageTaskListener implements ShellTaskOrganizer.TaskListener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
sendStatusChanged();
|
sendStatusChanged();
|
||||||
} else {
|
|
||||||
throw new IllegalArgumentException(this + "\n Unknown task: " + taskInfo
|
|
||||||
+ "\n mRootTaskInfo: " + mRootTaskInfo);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -126,12 +126,6 @@ public final class StageTaskListenerTests extends ShellTestCase {
|
|||||||
verify(mCallbacks).onStatusChanged(eq(mRootTask.isVisible), eq(true));
|
verify(mCallbacks).onStatusChanged(eq(mRootTask.isVisible), eq(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(expected = IllegalArgumentException.class)
|
|
||||||
public void testUnknownTaskVanished() {
|
|
||||||
final ActivityManager.RunningTaskInfo task = new TestRunningTaskInfoBuilder().build();
|
|
||||||
mStageTaskListener.onTaskVanished(task);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testTaskVanished() {
|
public void testTaskVanished() {
|
||||||
// With shell transitions, the transition manages status changes, so skip this test.
|
// With shell transitions, the transition manages status changes, so skip this test.
|
||||||
|
|||||||
Reference in New Issue
Block a user