-
Notifications
You must be signed in to change notification settings - Fork 708
Closed
Labels
Description
I read the note that says setCustomLayout is deprecated, and tried to migrate to setMediaButtonPreferences, however the next/prev slot reservation appeared and I don't want it. It seems it's hardcoded if there is no next/prev button:
media/libraries/session/src/main/java/androidx/media3/session/MediaSessionLegacyStub.java
Lines 1269 to 1274 in 7cc1056
| legacyExtras.putBoolean( | |
| MediaConstants.EXTRAS_KEY_SLOT_RESERVATION_SEEK_TO_PREV, | |
| !CommandButton.containsButtonForSlot(customLayout, CommandButton.SLOT_BACK)); | |
| legacyExtras.putBoolean( | |
| MediaConstants.EXTRAS_KEY_SLOT_RESERVATION_SEEK_TO_NEXT, | |
| !CommandButton.containsButtonForSlot(customLayout, CommandButton.SLOT_FORWARD)); |
Am I missing something, or is there no way to disable it?