mirror of
https://github.com/androidx/media.git
synced 2025-05-15 11:39:56 +08:00
Simplify disabling renderers in ExoPlayerTest
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=191901120
This commit is contained in:
parent
03a36ce6ba
commit
75338530ef
@ -726,13 +726,7 @@ public final class ExoPlayerTest {
|
||||
new ActionSchedule.Builder("testChangeTrackSelection")
|
||||
.pause()
|
||||
.waitForPlaybackState(Player.STATE_READY)
|
||||
.executeRunnable(
|
||||
new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
trackSelector.setRendererDisabled(0, true);
|
||||
}
|
||||
})
|
||||
.disableRenderer(0)
|
||||
.play()
|
||||
.build();
|
||||
|
||||
@ -773,13 +767,7 @@ public final class ExoPlayerTest {
|
||||
new ActionSchedule.Builder("testReuseTrackSelection")
|
||||
.pause()
|
||||
.waitForPlaybackState(Player.STATE_READY)
|
||||
.executeRunnable(
|
||||
new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
trackSelector.setRendererDisabled(0, true);
|
||||
}
|
||||
})
|
||||
.disableRenderer(0)
|
||||
.play()
|
||||
.build();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user