Commit 192c1e5d by krocard Committed by kim-vde

Improve OnExperimentalOffloadSchedulingEnabled name

For consistency with onShuffleModeEnabledChanged.

PiperOrigin-RevId: 325820951
parent 63faf51c
...@@ -612,8 +612,8 @@ public interface ExoPlayer extends Player { ...@@ -612,8 +612,8 @@ public interface ExoPlayer extends Player {
* <p>While offload scheduling is enabled, player events may be delivered severely delayed and * <p>While offload scheduling is enabled, player events may be delivered severely delayed and
* apps should not interact with the player. When returning to the foreground, disable offload * apps should not interact with the player. When returning to the foreground, disable offload
* scheduling and wait for {@link * scheduling and wait for {@link
* Player.EventListener#onExperimentalOffloadSchedulingEnabled(boolean)} to be called with {@code * Player.EventListener#onExperimentalOffloadSchedulingEnabledChanged(boolean)} to be called with
* offloadSchedulingEnabled = false} before interacting with the player. * {@code offloadSchedulingEnabled = false} before interacting with the player.
* *
* <p>This mode should save significant power when the phone is playing offload audio with the * <p>This mode should save significant power when the phone is playing offload audio with the
* screen off. * screen off.
......
...@@ -1488,7 +1488,7 @@ import java.util.concurrent.TimeoutException; ...@@ -1488,7 +1488,7 @@ import java.util.concurrent.TimeoutException;
invokeAll( invokeAll(
listenerSnapshot, listenerSnapshot,
listener -> listener ->
listener.onExperimentalOffloadSchedulingEnabled( listener.onExperimentalOffloadSchedulingEnabledChanged(
playbackInfo.offloadSchedulingEnabled)); playbackInfo.offloadSchedulingEnabled));
} }
} }
......
...@@ -611,7 +611,7 @@ public interface Player { ...@@ -611,7 +611,7 @@ public interface Player {
* *
* <p>This method is experimental, and will be renamed or removed in a future release. * <p>This method is experimental, and will be renamed or removed in a future release.
*/ */
default void onExperimentalOffloadSchedulingEnabled(boolean offloadSchedulingEnabled) {} default void onExperimentalOffloadSchedulingEnabledChanged(boolean offloadSchedulingEnabled) {}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment