Skip to content

Add FlagSet class to optimize playback actions

Description

This is a small layer atop PlaybackStateCompat to simplify the process of combining and debugging the enabled actions in the media sesssion. As the FlagSet class is generic, it is also usable for context actions. An additional commit is incorporated to migrate the context menu.

How Has This Been Tested?

All options are present in the media controller test tool. Confirmed playback works as expected.

Types of changes

  • Enhancement (non-breaking change which cleans up / improves existing functionality)

Checklist

  • I have read the CONTRIBUTING section of the README document.
Edited by Robert Stone

Merge request reports

Loading