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
This commit is contained in:
ibaker 2021-11-01 09:44:56 +00:00 committed by Ian Baker
parent bf18aae99d
commit 729b2b64f3

View File

@ -2022,7 +2022,7 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
/* videoSize= */ VideoSize.UNKNOWN,
/* timeline= */ currentTimeline,
/* playlistMetadata= */ playlistMetadata,
/* volume= */ deviceVolume,
/* volume= */ 1.0f,
/* audioAttributes= */ audioAttributes,
/* cues= */ Collections.emptyList(),
/* deviceInfo= */ deviceInfo,