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.

BUG: 19730261
Change-Id: I16052b79d514aa6ef92672130358d14924cfbc71
4 files changed