Merge "Do not throw exception on task vanished" into tm-qpr-dev

This commit is contained in:
Tony Huang
2023-03-29 19:19:39 +00:00
committed by Android (Google) Code Review
2 changed files with 0 additions and 9 deletions

View File

@@ -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);
} }
} }

View File

@@ -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.