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:
parent
bf18aae99d
commit
729b2b64f3
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user