Set RemoteControlClient transport flags from PlaybackStateCompat
Call RCC's setTransportControlFlags for API 14-20 devices when PlaybackStateCompat changes, converting actions to transport control flags as needed. This ensures that lockscreen controls (among other things) appear correctly without developers having to specifically call getRemoteControlClient().setTransportControlFlags() themselves.
Copies static actions constants from PlaybackState into MediaSessionCompatApi14, 18, and 19 as needed to extract actions.
BUG: 19730261
Change-Id: I33dece21108cb41bd71731f0a376513f8d63932b
4 files changed