From c1f1eb783165e69e56e8aae6bf1b846cd888dfd9 Mon Sep 17 00:00:00 2001 From: tonihei Date: Mon, 13 Jun 2022 11:00:12 +0000 Subject: [PATCH] Use correct placeholder PlayerID value in test The default constructor is only allowed to be called on API < 32 and the test should use the defined UNSET constant to be API independent. #minor-release PiperOrigin-RevId: 454568893 (cherry picked from commit 0ed53215c212753826d93daa7fb503e9aaf4ae8d) --- .../com/google/android/exoplayer2/MediaPeriodQueueTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/test/java/com/google/android/exoplayer2/MediaPeriodQueueTest.java b/library/core/src/test/java/com/google/android/exoplayer2/MediaPeriodQueueTest.java index 5a6e14d288..ced931e544 100644 --- a/library/core/src/test/java/com/google/android/exoplayer2/MediaPeriodQueueTest.java +++ b/library/core/src/test/java/com/google/android/exoplayer2/MediaPeriodQueueTest.java @@ -1280,7 +1280,7 @@ public final class MediaPeriodQueueTest { countDownLatch.countDown(); }, /* mediaTransferListener= */ null, - new PlayerId()); + PlayerId.UNSET); if (!countDownLatch.await(/* timeout= */ 2, SECONDS)) { fail(); }