From 63103978beda87bfeb22d36385bf0a7c87937fc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Muller?= Date: Sun, 9 Jun 2024 16:31:26 +0200 Subject: [PATCH] Make `MediaControllerImplLegacy.getMaxSeekToPreviousPosition()` return the correct value --- .../java/androidx/media3/session/MediaControllerImplLegacy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/session/src/main/java/androidx/media3/session/MediaControllerImplLegacy.java b/libraries/session/src/main/java/androidx/media3/session/MediaControllerImplLegacy.java index 2f29b9465f..f3d3ee810e 100644 --- a/libraries/session/src/main/java/androidx/media3/session/MediaControllerImplLegacy.java +++ b/libraries/session/src/main/java/androidx/media3/session/MediaControllerImplLegacy.java @@ -938,7 +938,7 @@ import org.checkerframework.checker.initialization.qual.UnderInitialization; @Override public long getMaxSeekToPreviousPosition() { - return 0L; + return controllerInfo.playerInfo.maxSeekToPreviousPositionMs; } @Override