Commit 729b2b64 by ibaker Committed by Ian Baker

Don't pass deviceVolume as volume in MediaControllerImplLegacy

deviceVolume (int) and volume (float) are not the same. Elsewhere
MediaControllerImplLegacy doesn't support volume and defaults to 1
(setVolume, getVolume), so defaulting to 1 here seems correct.

PiperOrigin-RevId: 406780391
parent bf18aae9
...@@ -2022,7 +2022,7 @@ import org.checkerframework.checker.nullness.compatqual.NullableType; ...@@ -2022,7 +2022,7 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
/* videoSize= */ VideoSize.UNKNOWN, /* videoSize= */ VideoSize.UNKNOWN,
/* timeline= */ currentTimeline, /* timeline= */ currentTimeline,
/* playlistMetadata= */ playlistMetadata, /* playlistMetadata= */ playlistMetadata,
/* volume= */ deviceVolume, /* volume= */ 1.0f,
/* audioAttributes= */ audioAttributes, /* audioAttributes= */ audioAttributes,
/* cues= */ Collections.emptyList(), /* cues= */ Collections.emptyList(),
/* deviceInfo= */ deviceInfo, /* deviceInfo= */ deviceInfo,
......
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