Skip to content

How to disable next/prev slot reservation with setMediaButtonPreferences? #2976

@nift4

Description

@nift4

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:

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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions