Merge "Fix flakiness of testTaskChangeCallBacks"

This commit is contained in:
TreeHugger Robot
2021-01-21 05:30:53 +00:00
committed by Android (Google) Code Review

View File

@@ -198,6 +198,10 @@ public class TaskStackChangedListenerTest {
@Override
public void onTaskRemoved(int taskId) throws RemoteException {
if (taskCreatedLaunchLatch.getCount() == 1) {
// The test activity hasn't started. Ignore the noise from previous test.
return;
}
params[0] = taskId;
taskRemovedLatch.countDown();
}